Record Class TableStatus.Snapshot
java.lang.Object
java.lang.Record
de.aristaflow.adept2.base.registry.dbconfiguration.TableStatus.Snapshot
- Record Components:
exists- Whether the table exists;nullif unknown.stamp- The nano timestamp of the last change or unconditional set of the status.
- Enclosing class:
- TableStatus
A snapshot of the table status.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.exists()Returns the value of theexistsrecord component.final inthashCode()Returns a hash code value for this object.booleanGets whether the table is known to exist.longstamp()Returns the value of thestamprecord component.final StringtoString()Returns a string representation of this record class.booleanunknown()Gets whether the existence of the table is unknown.
-
Constructor Details
-
Method Details
-
knownToExist
public boolean knownToExist()Gets whether the table is known to exist.- Returns:
- Whether the table is known to exist;
falsein case the existence is unknown.
-
unknown
public boolean unknown()Gets whether the existence of the table is unknown.- Returns:
- Whether the existence of the table is unknown.
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
exists
Returns the value of theexistsrecord component.- Returns:
- the value of the
existsrecord component
-
stamp
public long stamp()Returns the value of thestamprecord component.- Returns:
- the value of the
stamprecord component
-