@Test public void testClone() throws Exception { Timestamp t = new Timestamp(); t.setLogical((short)1); Timestamp tClone = t.clone(); tClone.setLogical((short)3); assertTrue(t.getLogical() != tClone.getLogical()); t.setLogical((short)2); assertTrue(t.getLogical() != tClone.getLogical()); }
public Timestamp clone() { return new Timestamp(this.wallTime, this.logical); }
Timestamp implements Comparable<Timestamp>, Cloneable { public Timestamp clone() { return new Timestamp(this.wallTime, this.logical); } }
Timestamp implements Comparable<Timestamp>, Cloneable { public Timestamp clone() { return new Timestamp(this.wallTime, this.logical); } Timestamp();  Timestamp(long wallTime, short logical);  Timestamp(long t); }
Timestamp implements Comparable<Timestamp>, Cloneable { public Timestamp clone() { return new Timestamp(this.wallTime, this.logical); } Timestamp();  Timestamp(long wallTime, short logical);  Timestamp(long t); Timestamp clone(); Timestamp add(Timestamp t); Timestamp add(long wallTime, short logical); long getWallTime(); void setWallTime(long wallTime); short getLogical(); void setLogical(short logical); void incrementLogical(); void resetLogical(); long toLong(); int compareTo(Timestamp o); String toString(); }
Timestamp implements Comparable<Timestamp>, Cloneable { public Timestamp clone() { return new Timestamp(this.wallTime, this.logical); } Timestamp();  Timestamp(long wallTime, short logical);  Timestamp(long t); Timestamp clone(); Timestamp add(Timestamp t); Timestamp add(long wallTime, short logical); long getWallTime(); void setWallTime(long wallTime); short getLogical(); void setLogical(short logical); void incrementLogical(); void resetLogical(); long toLong(); int compareTo(Timestamp o); String toString();  }