@Test public final void testHashCode() { Timestamped<String> a = new Timestamped<>("a", TS_1_1); Timestamped<String> b = new Timestamped<>("b", TS_1_1); assertTrue("value does not impact hashCode", a.hashCode() == b.hashCode()); }
@Override public int hashCode() { return timestamp.hashCode(); }
Timestamped { @Override public int hashCode() { return timestamp.hashCode(); } }
Timestamped { @Override public int hashCode() { return timestamp.hashCode(); } Timestamped(T value, Timestamp timestamp); private  Timestamped(); }
Timestamped { @Override public int hashCode() { return timestamp.hashCode(); } Timestamped(T value, Timestamp timestamp); private  Timestamped(); T value(); Timestamp timestamp(); boolean isNewer(Timestamped<T> other); boolean isNewerThan(Timestamp other); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString(); }
Timestamped { @Override public int hashCode() { return timestamp.hashCode(); } Timestamped(T value, Timestamp timestamp); private  Timestamped(); T value(); Timestamp timestamp(); boolean isNewer(Timestamped<T> other); boolean isNewerThan(Timestamp other); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString();  }