Package com.twicedb.shared
Record Class Vt
java.lang.Object
java.lang.Record
com.twicedb.shared.Vt
The valid time.
The Vt is the "business time," the time at which an event took place or is expected to take place "in the real world." This is assigned by the user for each write, and the user may query any Vt - including Vts in the future - on read.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.static Vt
static Vt
static Vt
of
(ZonedDateTime zdt) static Vt
final String
toString()
Returns a string representation of this record class.long
vt()
Returns the value of thevt
record component.
-
Field Details
-
INF
-
-
Constructor Details
-
Vt
public Vt(long vt) Creates an instance of aVt
record class.- Parameters:
vt
- the value for thevt
record component
-
-
Method Details
-
of
-
of
-
of
-
of
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with '=='. -
vt
public long vt()Returns the value of thevt
record component.- Returns:
- the value of the
vt
record component
-