Record Class Graphs.AncestorPlacement
java.lang.Object
java.lang.Record
io.fluxzero.sdk.modeling.Graphs.AncestorPlacement
- Enclosing class:
Graphs
-
Constructor Summary
ConstructorsConstructorDescriptionAncestorPlacement(String id, int depth, List<io.fluxzero.common.api.modeling.ModelGraphEdge> incoming) Creates an instance of aAncestorPlacementrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintdepth()Returns the value of thedepthrecord component.final 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.List<io.fluxzero.common.api.modeling.ModelGraphEdge> incoming()Returns the value of theincomingrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AncestorPlacement
public AncestorPlacement(String id, int depth, List<io.fluxzero.common.api.modeling.ModelGraphEdge> incoming) Creates an instance of aAncestorPlacementrecord class.- Parameters:
id- the value for theidrecord componentdepth- the value for thedepthrecord componentincoming- the value for theincomingrecord 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
-
depth
public int depth()Returns the value of thedepthrecord component.- Returns:
- the value of the
depthrecord component
-
incoming
Returns the value of theincomingrecord component.- Returns:
- the value of the
incomingrecord component
-