Record Class ModelGraphResolver.Relations
java.lang.Object
java.lang.Record
io.fluxzero.sdk.persisting.repository.ModelGraphResolver.Relations
- Enclosing interface:
ModelGraphResolver
public static record ModelGraphResolver.Relations(io.fluxzero.common.api.modeling.ModelReadBoundary boundary, Map<String, ModelGraphResolver.ModelNode> models, List<io.fluxzero.common.api.modeling.ModelGraphEdge> edges, Set<String> completeCollections, boolean historical)
extends Record
Coherent metadata for the requested direct relationship collections, including empty ones.
-
Constructor Summary
ConstructorsConstructorDescriptionRelations(io.fluxzero.common.api.modeling.ModelReadBoundary boundary, Map<String, ModelGraphResolver.ModelNode> models, List<io.fluxzero.common.api.modeling.ModelGraphEdge> edges, Set<String> completeCollections, boolean historical) Creates an instance of aRelationsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionio.fluxzero.common.api.modeling.ModelReadBoundaryboundary()Returns the value of theboundaryrecord component.Returns the value of thecompleteCollectionsrecord component.List<io.fluxzero.common.api.modeling.ModelGraphEdge> edges()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.booleanReturns the value of thehistoricalrecord component.models()Returns the value of themodelsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Relations
public Relations(io.fluxzero.common.api.modeling.ModelReadBoundary boundary, Map<String, ModelGraphResolver.ModelNode> models, List<io.fluxzero.common.api.modeling.ModelGraphEdge> edges, Set<String> completeCollections, boolean historical) Creates an instance of aRelationsrecord class.- Parameters:
boundary- the value for theboundaryrecord componentmodels- the value for themodelsrecord componentedges- the value for theedgesrecord componentcompleteCollections- the value for thecompleteCollectionsrecord componenthistorical- the value for thehistoricalrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
boundary
public io.fluxzero.common.api.modeling.ModelReadBoundary boundary()Returns the value of theboundaryrecord component.- Returns:
- the value of the
boundaryrecord component
-
models
Returns the value of themodelsrecord component.- Returns:
- the value of the
modelsrecord component
-
edges
Returns the value of theedgesrecord component.- Returns:
- the value of the
edgesrecord component
-
completeCollections
-
historical
public boolean historical()Returns the value of thehistoricalrecord component.- Returns:
- the value of the
historicalrecord component
-