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.
|
clone
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDiscriminant, getValue
public AbstractValueDiscriminantPair()
AbstractValueDiscriminantPair
.public ValueType getFirst()
Pair
getFirst
in interface Pair<ValueType,DiscriminantType extends java.lang.Comparable<? super DiscriminantType>>
public DiscriminantType getSecond()
Pair
getSecond
in interface Pair<ValueType,DiscriminantType extends java.lang.Comparable<? super DiscriminantType>>