public class LogicalTimestamp extends Object implements Timestamp
LogicalTimestamps are ordered by their sequence values.
| Constructor and Description |
|---|
LogicalTimestamp(long value) |
| Modifier and Type | Method and Description |
|---|---|
Version |
asVersion()
Returns the timestamp as a version.
|
int |
compareTo(Timestamp o) |
boolean |
equals(Object obj) |
int |
hashCode() |
static LogicalTimestamp |
of(long value)
Returns a new logical timestamp for the given logical time.
|
String |
toString() |
long |
value()
Returns the sequence value.
|
isNewerThan, isOlderThanpublic static LogicalTimestamp of(long value)
value - the logical time for which to create a new logical timestamppublic long value()
public Version asVersion()
public int compareTo(Timestamp o)
compareTo in interface Comparable<Timestamp>public int hashCode()
public boolean equals(Object obj)
Copyright © 2013–2018. All rights reserved.