Package dev.roanh.cpqindex
Class PathPair
java.lang.Object
dev.roanh.cpqindex.PathPair
- All Implemented Interfaces:
Comparable<PathPair>
Represents a pair of two labelled paths
that were joined to form a new path.
-
Field Summary
Modifier and TypeFieldDescriptionprivate final LabelledPath
The first path of this pair, also the start of the joined path.private final LabelledPath
The second path of this pair, also the end of the joined path. -
Constructor Summary
ConstructorDescriptionPathPair
(LabelledPath first, LabelledPath second) Constructs a new path pair with the given paths. -
Method Summary
-
Field Details
-
first
The first path of this pair, also the start of the joined path. -
second
The second path of this pair, also the end of the joined path.
-
-
Constructor Details
-
PathPair
Constructs a new path pair with the given paths.- Parameters:
first
- The first and start path.second
- The second and end path.
-
-
Method Details
-
getFirst
Gets the first path in this pair.- Returns:
- The first path in this pair.
- See Also:
-
getSecond
Gets the second path in this pair.- Returns:
- The second path in this pair.
- See Also:
-
equals
-
hashCode
public int hashCode() -
compareTo
- Specified by:
compareTo
in interfaceComparable<PathPair>
-