@Test public void test01() { final BookingBean booking1 = new BookingBean("id1", new Guest("g1"), new Room("1"), new BookingOrigin("airbnb"), LocalDate .of(2000, 4, 4), LocalDate.of(2000, 4, 6)); final BookingBean booking2 = new BookingBean("id2", new Guest("g2"), new Room("2"), new BookingOrigin("airbnb"), LocalDate .of(2000, 4, 4), LocalDate.of(2000, 4, 6)); booking1.setGrossEarningsExpression("100"); booking2.setGrossEarningsExpression("200"); final List<BookingEntry> entries1 = booking1.getEntries(); final List<BookingEntry> entries2 = booking2.getEntries(); view.addAll(entries1); view.addAll(entries2); assertThat(view.data.size(), is(1)); }
public NightlyRateView addAll(final Collection<? extends BookingEntry> bookingEntries) { bookingEntries.forEach(c -> add(c)); return this; }
NightlyRateView { public NightlyRateView addAll(final Collection<? extends BookingEntry> bookingEntries) { bookingEntries.forEach(c -> add(c)); return this; } }
NightlyRateView { public NightlyRateView addAll(final Collection<? extends BookingEntry> bookingEntries) { bookingEntries.forEach(c -> add(c)); return this; } NightlyRateView(final Collection<? extends BookingEntry> bookingEntries);  NightlyRateView(); }
NightlyRateView { public NightlyRateView addAll(final Collection<? extends BookingEntry> bookingEntries) { bookingEntries.forEach(c -> add(c)); return this; } NightlyRateView(final Collection<? extends BookingEntry> bookingEntries);  NightlyRateView(); @Override String toString(); Map<BookingOrigin, Map<LocalDate, Collection<Number>>> getData(); NightlyRateView addAll(final Collection<? extends BookingEntry> bookingEntries); NightlyRateView add(final BookingEntry b); void setBinSize(final double binSize); void setBinType(final BinType selectedItem); }
NightlyRateView { public NightlyRateView addAll(final Collection<? extends BookingEntry> bookingEntries) { bookingEntries.forEach(c -> add(c)); return this; } NightlyRateView(final Collection<? extends BookingEntry> bookingEntries);  NightlyRateView(); @Override String toString(); Map<BookingOrigin, Map<LocalDate, Collection<Number>>> getData(); NightlyRateView addAll(final Collection<? extends BookingEntry> bookingEntries); NightlyRateView add(final BookingEntry b); void setBinSize(final double binSize); void setBinType(final BinType selectedItem);  }