Record Class ModelRelationshipRead
java.lang.Object
java.lang.Record
io.fluxzero.common.api.modeling.ModelRelationshipRead
- Record Components:
modelId- canonical identity at the source of the selectiondirection- whether incoming children or outgoing parents were selectedpath- exact persisted relationship path, ornullfor all paths
public record ModelRelationshipRead(String modelId, ModelRelationshipRead.Direction direction, String path)
extends Record
A relationship selection observed at the commit's read boundary, including a selection that returned no edges.
Values of the selected Models are separate head dependencies. A
null path selects every relationship path;
an empty path selects only pathless relationships. Type filtering is conservatively protected at path granularity.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumDirection relative to the observed Model. -
Constructor Summary
ConstructorsConstructorDescriptionModelRelationshipRead(String modelId, ModelRelationshipRead.Direction direction, String path) Creates an instance of aModelRelationshipReadrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedirectionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanmatches(String childId, ModelRelationship relationship) Whether an edge belongs to this selection, independently of its temporal validity.modelId()Returns the value of themodelIdrecord component.path()Returns the value of thepathrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ModelRelationshipRead
public ModelRelationshipRead(String modelId, ModelRelationshipRead.Direction direction, String path) Creates an instance of aModelRelationshipReadrecord class.
-
-
Method Details
-
matches
Whether an edge belongs to this selection, independently of its temporal validity. -
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 withObjects::equals(Object,Object). -
modelId
-
direction
-
path
-