Record Class Graphs.MaterializedNode
java.lang.Object
java.lang.Record
io.fluxzero.sdk.modeling.Graphs.MaterializedNode
- Enclosing class:
Graphs
-
Constructor Summary
ConstructorsConstructorDescriptionMaterializedNode(String id, Class<?> type, int parent, String relationshipPath, Supplier<?> value) Creates an instance of aMaterializedNoderecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.intparent()Returns the value of theparentrecord component.Returns the value of therelationshipPathrecord component.final StringtoString()Returns a string representation of this record class.Class<?> type()Returns the value of thetyperecord component.Supplier<?> value()Returns the value of thevaluerecord component.
-
Constructor Details
-
MaterializedNode
public MaterializedNode(String id, Class<?> type, int parent, String relationshipPath, Supplier<?> value) Creates an instance of aMaterializedNoderecord class.- Parameters:
id- the value for theidrecord componenttype- the value for thetyperecord componentparent- the value for theparentrecord componentrelationshipPath- the value for therelationshipPathrecord componentvalue- the value for thevaluerecord 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. -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
parent
public int parent()Returns the value of theparentrecord component.- Returns:
- the value of the
parentrecord component
-
relationshipPath
Returns the value of therelationshipPathrecord component.- Returns:
- the value of the
relationshipPathrecord component
-
value
Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-