@Test public final void testIsNewer() { Timestamped<String> a = new Timestamped<>("a", TS_1_2); Timestamped<String> b = new Timestamped<>("b", TS_1_1); assertTrue(a.isNewer(b)); assertFalse(b.isNewer(a)); }
public boolean isNewer(Timestamped<T> other) { return isNewerThan(checkNotNull(other).timestamp()); }
Timestamped { public boolean isNewer(Timestamped<T> other) { return isNewerThan(checkNotNull(other).timestamp()); } }
Timestamped { public boolean isNewer(Timestamped<T> other) { return isNewerThan(checkNotNull(other).timestamp()); } Timestamped(T value, Timestamp timestamp); private  Timestamped(); }
Timestamped { public boolean isNewer(Timestamped<T> other) { return isNewerThan(checkNotNull(other).timestamp()); } 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 { public boolean isNewer(Timestamped<T> other) { return isNewerThan(checkNotNull(other).timestamp()); } 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();  }