Record Class NodePair
java.lang.Object
java.lang.Record
org.impulsegraph.api.traversal.NodePair
Pair of dense node IDs (e.g., 2-node set cover pair).
-
Constructor Summary
ConstructorsConstructorDescriptionNodePair(long firstNodeId, long secondNodeId) Creates an instance of aNodePairrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.longReturns the value of thefirstNodeIdrecord component.final inthashCode()Returns a hash code value for this object.longReturns the value of thesecondNodeIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
NodePair
public NodePair(long firstNodeId, long secondNodeId) Creates an instance of aNodePairrecord class.- Parameters:
firstNodeId- the value for thefirstNodeIdrecord componentsecondNodeId- the value for thesecondNodeIdrecord 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 with thecomparemethod from their corresponding wrapper classes. -
firstNodeId
public long firstNodeId()Returns the value of thefirstNodeIdrecord component.- Returns:
- the value of the
firstNodeIdrecord component
-
secondNodeId
public long secondNodeId()Returns the value of thesecondNodeIdrecord component.- Returns:
- the value of the
secondNodeIdrecord component
-