Record Class ModelRelationshipQueries.ResolvedBoundary
java.lang.Object
java.lang.Record
io.fluxzero.common.modeling.ModelRelationshipQueries.ResolvedBoundary
- Enclosing class:
ModelRelationshipQueries
public static record ModelRelationshipQueries.ResolvedBoundary(long stateIndex, boolean exact)
extends Record
State selected for a read and whether it came from the requested selector rather than an allowed fallback.
-
Constructor Summary
ConstructorsConstructorDescriptionResolvedBoundary(long stateIndex, boolean exact) Creates an instance of aResolvedBoundaryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.booleanexact()Returns the value of theexactrecord component.final inthashCode()Returns a hash code value for this object.longReturns the value of thestateIndexrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ResolvedBoundary
public ResolvedBoundary(long stateIndex, boolean exact) Creates an instance of aResolvedBoundaryrecord class.- Parameters:
stateIndex- the value for thestateIndexrecord componentexact- the value for theexactrecord component
-
-
Method Details
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
stateIndex
public long stateIndex()Returns the value of thestateIndexrecord component.- Returns:
- the value of the
stateIndexrecord component
-
exact
public boolean exact()Returns the value of theexactrecord component.- Returns:
- the value of the
exactrecord component
-