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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanbooleanstatic Ttstatic Ttstatic Ttof(ZonedDateTime zdt) static Ttfinal StringtoString()Returns a string representation of this record class.longtt()Returns the value of thettrecord component.
-
Field Details
-
INF
-
-
Constructor Details
-
Tt
public Tt(long tt) Creates an instance of aTtrecord class.- Parameters:
tt- the value for thettrecord 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 thettrecord component.- Returns:
- the value of the
ttrecord component