@Test public void testDigest() { Timestamp ts = new LogicalTimestamp(10); MapValue<String> mv = new MapValue<>("foo", ts); Digest actual = mv.digest(); Digest expected = new MapValue.Digest(ts, false); assertEquals(actual, expected); }
public Digest digest() { return new Digest(timestamp, isTombstone()); }
MapValue implements Comparable<MapValue<V>> { public Digest digest() { return new Digest(timestamp, isTombstone()); } }
MapValue implements Comparable<MapValue<V>> { public Digest digest() { return new Digest(timestamp, isTombstone()); } MapValue(V value, Timestamp timestamp);  MapValue(V value, Timestamp timestamp, long creationTime); @SuppressWarnings("unused") private  MapValue(); }
MapValue implements Comparable<MapValue<V>> { public Digest digest() { return new Digest(timestamp, isTombstone()); } MapValue(V value, Timestamp timestamp);  MapValue(V value, Timestamp timestamp, long creationTime); @SuppressWarnings("unused") private  MapValue(); static MapValue<U> tombstone(Timestamp timestamp); MapValue<V> copy(); boolean isTombstone(); boolean isAlive(); Timestamp timestamp(); V get(); long creationTime(); boolean isNewerThan(MapValue<V> other); boolean isNewerThan(Timestamp timestamp); Digest digest(); @Override int compareTo(MapValue<V> o); @Override int hashCode(); @SuppressWarnings("unchecked") @Override boolean equals(Object other); @Override String toString(); }
MapValue implements Comparable<MapValue<V>> { public Digest digest() { return new Digest(timestamp, isTombstone()); } MapValue(V value, Timestamp timestamp);  MapValue(V value, Timestamp timestamp, long creationTime); @SuppressWarnings("unused") private  MapValue(); static MapValue<U> tombstone(Timestamp timestamp); MapValue<V> copy(); boolean isTombstone(); boolean isAlive(); Timestamp timestamp(); V get(); long creationTime(); boolean isNewerThan(MapValue<V> other); boolean isNewerThan(Timestamp timestamp); Digest digest(); @Override int compareTo(MapValue<V> o); @Override int hashCode(); @SuppressWarnings("unchecked") @Override boolean equals(Object other); @Override String toString();  }