@Test public void testEqualsHashCode01() { final CleaningEntry ce1 = new CleaningEntry(LocalDate.now(), TestUtils.getTestBooking("tt"), new Cleaning("testCleaning"), null); final CleaningEntry ce2 = new CleaningEntry(LocalDate.now(), TestUtils.getTestBooking("tt"), new Cleaning("testCleaning"), null); assertEquals(ce1.hashCode(), ce2.hashCode()); assertEquals(ce1, ce2); }
@Override public int hashCode() { return Objects.hash(super.hashCode(), getBooking()); }
CleaningEntry extends DateEntry<Cleaning> { @Override public int hashCode() { return Objects.hash(super.hashCode(), getBooking()); } }
CleaningEntry extends DateEntry<Cleaning> { @Override public int hashCode() { return Objects.hash(super.hashCode(), getBooking()); } CleaningEntry(final LocalDate date, final BookingBean booking, final Cleaning element,
                         final MainManager mainManager); }
CleaningEntry extends DateEntry<Cleaning> { @Override public int hashCode() { return Objects.hash(super.hashCode(), getBooking()); } CleaningEntry(final LocalDate date, final BookingBean booking, final Cleaning element,
                         final MainManager mainManager); BookingBean getBooking(); @Override String toString(); void addCalendarId(final String id); final FloatProperty cleaningCostsProperty(); List<String> getCalendarIds(); CleaningEntry setCalendarIds(final Collection<? extends String> calendarIds); final float getCleaningCosts(); final void setCleaningCosts(final float cleaningCosts); boolean isShortTime(); @Override boolean equals(Object o); @Override int hashCode(); Room getRoom(); String getName(); }
CleaningEntry extends DateEntry<Cleaning> { @Override public int hashCode() { return Objects.hash(super.hashCode(), getBooking()); } CleaningEntry(final LocalDate date, final BookingBean booking, final Cleaning element,
                         final MainManager mainManager); BookingBean getBooking(); @Override String toString(); void addCalendarId(final String id); final FloatProperty cleaningCostsProperty(); List<String> getCalendarIds(); CleaningEntry setCalendarIds(final Collection<? extends String> calendarIds); final float getCleaningCosts(); final void setCleaningCosts(final float cleaningCosts); boolean isShortTime(); @Override boolean equals(Object o); @Override int hashCode(); Room getRoom(); String getName();  }