Package com.twicedb.shared
Record Class Tt
java.lang.Object
java.lang.Record
com.twicedb.shared.Tt
The transaction time.
Tt is assigned to writes by the TwiceDB server; users have no control over the assigned Tt. Users may read at any Tt up to and including the current Lsqt.
-
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.boolean
boolean
static Tt
static Tt
static Tt
of
(ZonedDateTime zdt) static Tt
final String
toString()
Returns a string representation of this record class.long
tt()
Returns the value of thett
record component.
-
Field Details
-
INF
-
-
Constructor Details
-
Tt
public Tt(long tt) Creates an instance of aTt
record class.- Parameters:
tt
- the value for thett
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 '=='. -
tt
public long tt()Returns the value of thett
record component.- Returns:
- the value of the
tt
record component