@Test public void testChildRemoveEvent_equals() { ChildRemoveEvent a = ChildRemoveEvent.create(mockDataSnapshot1); ChildRemoveEvent b = ChildRemoveEvent.create(mockDataSnapshot1); ChildRemoveEvent c = ChildRemoveEvent.create(mockDataSnapshot2); assertThat(a) .isEqualTo(b) .isNotEqualTo(c); assertThat(a.hashCode()) .isEqualTo(b.hashCode()) .isNotEqualTo(c.hashCode()); }
@Override public int hashCode() { return dataSnapshot.hashCode(); }
ChildEvent { @Override public int hashCode() { return dataSnapshot.hashCode(); } }
ChildEvent { @Override public int hashCode() { return dataSnapshot.hashCode(); } ChildEvent(DataSnapshot dataSnapshot); }
ChildEvent { @Override public int hashCode() { return dataSnapshot.hashCode(); } ChildEvent(DataSnapshot dataSnapshot); @NonNull DataSnapshot dataSnapshot(); @Override boolean equals(Object o); @Override int hashCode(); }
ChildEvent { @Override public int hashCode() { return dataSnapshot.hashCode(); } ChildEvent(DataSnapshot dataSnapshot); @NonNull DataSnapshot dataSnapshot(); @Override boolean equals(Object o); @Override int hashCode();  }