Record Class ValueGraph.EndpointPair<N>
java.lang.Object
java.lang.Record
cloud.opencode.base.collections.graph.ValueGraph.EndpointPair<N>
- Type Parameters:
N- node type | 节点类型- Record Components:
source- the source node | 源节点target- the target node | 目标节点
- Enclosing interface:
ValueGraph<N,V>
Endpoint pair representing an edge between two nodes.
表示两个节点之间边的端点对。
- Since:
- JDK 25, opencode-base-collections V1.0.3
- Author:
- Leon Soo www.LeonSoo.com
-
Constructor Summary
ConstructorsConstructorDescriptionEndpointPair(N source, N target) Creates an instance of aEndpointPairrecord 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.source()Returns the value of thesourcerecord component.target()Returns the value of thetargetrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
EndpointPair
-
-
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). -
source
-
target
-