Record Class TemporalConstraintGraph.EdgeAndNode<E extends Edge>
java.lang.Object
java.lang.Record
it.univr.di.cstnu.graph.TemporalConstraintGraph.EdgeAndNode<E>
- Type Parameters:
E- edge type- Record Components:
edge- traversed edgenode- canonical vertex at the opposite end
- Enclosing interface:
TemporalConstraintGraph<E extends Edge>
public static record TemporalConstraintGraph.EdgeAndNode<E extends Edge>(@Nonnull E extends Edge edge, @Nonnull LabeledNode node)
extends Record
An edge paired with the canonical vertex at the opposite end of a traversal.
- Author:
- posenato
-
Constructor Summary
ConstructorsConstructorDescriptionEdgeAndNode(E edge, LabeledNode node) Creates an instance of aEdgeAndNoderecord class. -
Method Summary
Modifier and TypeMethodDescriptionedge()Returns the value of theedgerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.node()Returns the value of thenoderecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
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). -
edge
-
node
-