Record Class ModelGraphResolver.Identity
java.lang.Object
java.lang.Record
io.fluxzero.sdk.persisting.repository.ModelGraphResolver.Identity
- Enclosing interface:
ModelGraphResolver
public static record ModelGraphResolver.Identity(String modelId, boolean present, io.fluxzero.common.api.modeling.ModelReadBoundary boundary, boolean historical, Supplier<Entity<?>> entity)
extends Record
One resolved identity and lazy value at a shared boundary; absent identities must not be resolved again.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionio.fluxzero.common.api.modeling.ModelReadBoundaryboundary()Returns the value of theboundaryrecord component.entity()Returns the value of theentityrecord 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.modelId()Returns the value of themodelIdrecord component.booleanpresent()Returns the value of thepresentrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Identity
public Identity(String modelId, boolean present, io.fluxzero.common.api.modeling.ModelReadBoundary boundary, boolean historical, Supplier<Entity<?>> entity) Creates an instance of aIdentityrecord class.- Parameters:
modelId- the value for themodelIdrecord componentpresent- the value for thepresentrecord componentboundary- the value for theboundaryrecord componenthistorical- the value for thehistoricalrecord componententity- the value for theentityrecord 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. -
modelId
Returns the value of themodelIdrecord component.- Returns:
- the value of the
modelIdrecord component
-
present
public boolean present()Returns the value of thepresentrecord component.- Returns:
- the value of the
presentrecord component
-
boundary
public io.fluxzero.common.api.modeling.ModelReadBoundary boundary()Returns the value of theboundaryrecord component.- Returns:
- the value of the
boundaryrecord component
-
historical
public boolean historical()Returns the value of thehistoricalrecord component.- Returns:
- the value of the
historicalrecord component
-
entity
-