Record Class ScriptGraph.GraphEdge
java.lang.Object
java.lang.Record
com.soulfiremc.server.script.ScriptGraph.GraphEdge
- Record Components:
sourceNodeId- the source node IDsourceHandle- the output handle on the source nodetargetNodeId- the target node IDtargetHandle- the input handle on the target nodeedgeType- whether this is an execution or data edge
- Enclosing class:
ScriptGraph
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionedgeType()Returns the value of theedgeTyperecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thesourceHandlerecord component.Returns the value of thesourceNodeIdrecord component.Returns the value of thetargetHandlerecord component.Returns the value of thetargetNodeIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
GraphEdge
public GraphEdge(String sourceNodeId, String sourceHandle, String targetNodeId, String targetHandle, ScriptGraph.EdgeType edgeType) Creates an instance of aGraphEdgerecord class.- Parameters:
sourceNodeId- the value for thesourceNodeIdrecord componentsourceHandle- the value for thesourceHandlerecord componenttargetNodeId- the value for thetargetNodeIdrecord componenttargetHandle- the value for thetargetHandlerecord componentedgeType- the value for theedgeTyperecord 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. 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
-
sourceHandle
Returns the value of thesourceHandlerecord component.- Returns:
- the value of the
sourceHandlerecord component
-
targetNodeId
Returns the value of thetargetNodeIdrecord component.- Returns:
- the value of the
targetNodeIdrecord component
-
targetHandle
Returns the value of thetargetHandlerecord component.- Returns:
- the value of the
targetHandlerecord component
-
edgeType
-