Package org.anchoranalysis.mpp.pair
Class MarkPair<T extends Mark>
Object
MarkPair<T>
- Type Parameters:
T
- The type of mark in the pair, extending Mark
Represents a pair of marks, with a source and destination.
The marks are ordered such that the source always has a lower identifier than the destination.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
MarkPair
Constructs a new MarkPair.The marks are automatically ordered so that the source has a lower identifier than the destination.
- Parameters:
source
- One of the marks in the pairdestination
- The other mark in the pair
-
-
Method Details
-
equals
-
hashCode
public int hashCode() -
getSource
Gets the source mark of the pair (the one with the lower identifier).- Returns:
- The source mark
-
getDestination
Gets the destination mark of the pair (the one with the higher identifier).- Returns:
- The destination mark
-
toString
-