@Test public void testChildChangeEvent_equals_dataSnapshot() { ChildChangeEvent a = ChildChangeEvent.create(mockDataSnapshot1, "foo"); ChildChangeEvent b = ChildChangeEvent.create(mockDataSnapshot1, "foo"); ChildChangeEvent c = ChildChangeEvent.create(mockDataSnapshot2, "foo"); 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();  }