public class Timestamp
If present in a transaction, contains a time that was verified by the uniqueness service. The true time must be between (after, before).
Constructor and Description |
---|
Timestamp(java.time.Instant after,
java.time.Instant before)
If present in a transaction, contains a time that was verified by the uniqueness service. The true time must be
between (after, before).
|
Timestamp(java.time.Instant time,
java.time.Duration tolerance) |
Modifier and Type | Method and Description |
---|---|
java.time.Instant |
component1() |
java.time.Instant |
component2() |
Timestamp |
copy(java.time.Instant after,
java.time.Instant before)
If present in a transaction, contains a time that was verified by the uniqueness service. The true time must be
between (after, before).
|
boolean |
equals(java.lang.Object p) |
java.time.Instant |
getAfter() |
java.time.Instant |
getBefore() |
java.time.Instant |
getMidpoint() |
int |
hashCode() |
java.lang.String |
toString() |
public Timestamp(java.time.Instant after, java.time.Instant before)
If present in a transaction, contains a time that was verified by the uniqueness service. The true time must be between (after, before).
public Timestamp(java.time.Instant time, java.time.Duration tolerance)
public java.time.Instant getMidpoint()
public java.time.Instant getAfter()
public java.time.Instant getBefore()
public java.time.Instant component1()
public java.time.Instant component2()
public Timestamp copy(java.time.Instant after, java.time.Instant before)
If present in a transaction, contains a time that was verified by the uniqueness service. The true time must be between (after, before).
public java.lang.String toString()
public int hashCode()
public boolean equals(java.lang.Object p)