Package org.bsc.langgraph4j.builder
Record Class GraphDefinition.Edge
java.lang.Object
java.lang.Record
org.bsc.langgraph4j.builder.GraphDefinition.Edge
- Record Components:
from- The source node of the edge.to- The target node of the edge (for simple edges).condition- The condition for conditional edges.paths- The paths for conditional edges.
- Enclosing class:
- GraphDefinition
public static record GraphDefinition.Edge(String from, String to, String condition, List<String> paths)
extends Record
Represents an edge in the graph.
It can be a simple edge or a conditional edge.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconditionrecord component.final booleanIndicates whether some other object is "equal to" this one.from()Returns the value of thefromrecord component.from$()final inthashCode()Returns a hash code value for this object.paths()Returns the value of thepathsrecord component.paths$()to()Returns the value of thetorecord component.to$()final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
from
Returns the value of thefromrecord component.- Returns:
- the value of the
fromrecord component
-
from$
-
to
Returns the value of thetorecord component.- Returns:
- the value of the
torecord component
-
to$
-
condition
Returns the value of theconditionrecord component.- Returns:
- the value of the
conditionrecord component
-
paths
Returns the value of thepathsrecord component.- Returns:
- the value of the
pathsrecord component
-
paths$
-
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).
-