Record Class ModelRelationshipTraversal.Result
java.lang.Object
java.lang.Record
io.fluxzero.common.modeling.ModelRelationshipTraversal.Result
- Enclosing class:
ModelRelationshipTraversal
public static record ModelRelationshipTraversal.Result(List<String> modelIds, List<ModelGraphEdge> edges)
extends Record
Ordered traversal result, including edges only when an edge mapper was supplied.
-
Constructor Summary
ConstructorsConstructorDescriptionResult(List<String> modelIds, List<ModelGraphEdge> edges) Creates an instance of aResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionedges()Returns the value of theedgesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.modelIds()Returns the value of themodelIdsrecord component.final StringtoString()Returns a string representation of this record class.without(Collection<String> roots) Returns all discovered model IDs except the supplied roots.
-
Constructor Details
-
Result
Creates an instance of aResultrecord class.- Parameters:
modelIds- the value for themodelIdsrecord componentedges- the value for theedgesrecord component
-
-
Method Details
-
without
Returns all discovered model IDs except the supplied roots. -
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). -
modelIds
-
edges
Returns the value of theedgesrecord component.- Returns:
- the value of the
edgesrecord component
-