LogicalTimestamp implements Timestamp { public LogicalTimestamp(final long value) { this.value = value; } LogicalTimestamp(final long value); static LogicalTimestamp of(final long value); long value(); Version asVersion(); @Override int compareTo(final Timestamp o); @Override int hashCode(); @Override boolean equals(final Object obj); @Override String toString();  }
@Test public void testLogicalTimestamp() throws Exception { final LogicalTimestamp timestamp = LogicalTimestamp.of(1); assertEquals(1, timestamp.value()); assertTrue(timestamp.isNewerThan(LogicalTimestamp.of(0))); assertFalse(timestamp.isNewerThan(LogicalTimestamp.of(2))); assertTrue(timestamp.isOlderThan(LogicalTimestamp.of(2))); assertFalse(timestamp.isOlderThan(LogicalTimestamp.of(0))); }