Package org.forgerock.am.trees.api
Record Class Tree.Link
java.lang.Object
java.lang.Record
org.forgerock.am.trees.api.Tree.Link
- Record Components:
sourceNodeId- the ID of the source nodedestinationNodeId- the ID of the destination nodeoutcome- the outcome that leads to the destination node
- Enclosing interface:
- Tree
public static record Tree.Link(UUID sourceNodeId, UUID destinationNodeId, String outcome)
extends Record
A class representing a Link between two nodes in the tree.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedestinationNodeIdrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.outcome()Returns the value of theoutcomerecord component.Returns the value of thesourceNodeIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Link
Creates an instance of aLinkrecord class.- Parameters:
sourceNodeId- the value for thesourceNodeIdrecord componentdestinationNodeId- the value for thedestinationNodeIdrecord componentoutcome- the value for theoutcomerecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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). -
sourceNodeId
Returns the value of thesourceNodeIdrecord component.- Returns:
- the value of the
sourceNodeIdrecord component
-
destinationNodeId
Returns the value of thedestinationNodeIdrecord component.- Returns:
- the value of the
destinationNodeIdrecord component
-
outcome
Returns the value of theoutcomerecord component.- Returns:
- the value of the
outcomerecord component
-