@Test public void testChildAddEvent_equals_dataSnapshot() { ChildAddEvent a = ChildAddEvent.create(mockDataSnapshot1, "foo"); ChildAddEvent b = ChildAddEvent.create(mockDataSnapshot1, "foo"); ChildAddEvent c = ChildAddEvent.create(mockDataSnapshot2, "foo"); assertThat(a).isEqualTo(a).isNotEqualTo(null).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();  }