ValueType - The general value stored in the pair.DiscriminantType - The discriminant comparable object used for ordering objects that have
equal value.public abstract class AbstractValueDiscriminantPair<ValueType,DiscriminantType extends java.lang.Comparable<? super DiscriminantType>> extends AbstractCloneableSerializable implements ValueDiscriminantPair<ValueType,DiscriminantType>
ValueDiscriminantPair interface.
Takes care of the mapping of the Pair interface methods.| Constructor and Description |
|---|
AbstractValueDiscriminantPair()
Creates a new
AbstractValueDiscriminantPair. |
| Modifier and Type | Method and Description |
|---|---|
ValueType |
getFirst()
Gets the first object.
|
DiscriminantType |
getSecond()
Gets the second object.
|
cloneequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDiscriminant, getValuepublic AbstractValueDiscriminantPair()
AbstractValueDiscriminantPair.public ValueType getFirst()
PairgetFirst in interface Pair<ValueType,DiscriminantType extends java.lang.Comparable<? super DiscriminantType>>public DiscriminantType getSecond()
PairgetSecond in interface Pair<ValueType,DiscriminantType extends java.lang.Comparable<? super DiscriminantType>>