@Test public void testTombstone() { Timestamp ts1 = new LogicalTimestamp(9); MapValue<String> mv = MapValue.tombstone(ts1); assertTrue(mv.isTombstone()); assertFalse(mv.isAlive()); assertNull(mv.get()); assertEquals(ts1, mv.timestamp()); }
public static <U> MapValue<U> tombstone(Timestamp timestamp) { return new MapValue<>(null, timestamp, System.currentTimeMillis()); }
MapValue implements Comparable<MapValue<V>> { public static <U> MapValue<U> tombstone(Timestamp timestamp) { return new MapValue<>(null, timestamp, System.currentTimeMillis()); } }
MapValue implements Comparable<MapValue<V>> { public static <U> MapValue<U> tombstone(Timestamp timestamp) { return new MapValue<>(null, timestamp, System.currentTimeMillis()); } MapValue(V value, Timestamp timestamp);  MapValue(V value, Timestamp timestamp, long creationTime); @SuppressWarnings("unused") private  MapValue(); }
MapValue implements Comparable<MapValue<V>> { public static <U> MapValue<U> tombstone(Timestamp timestamp) { return new MapValue<>(null, timestamp, System.currentTimeMillis()); } 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 static <U> MapValue<U> tombstone(Timestamp timestamp) { return new MapValue<>(null, timestamp, System.currentTimeMillis()); } 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();  }