gov.sandia.cognition.learning.data
Class AbstractValueDiscriminantPair<ValueType,DiscriminantType extends Comparable<? super DiscriminantType>>

java.lang.Object
  extended by gov.sandia.cognition.util.AbstractCloneableSerializable
      extended by gov.sandia.cognition.learning.data.AbstractValueDiscriminantPair<ValueType,DiscriminantType>
Type Parameters:
ValueType - The general value stored in the pair.
DiscriminantType - The discriminant comparable object used for ordering objects that have equal value.
All Implemented Interfaces:
ValueDiscriminantPair<ValueType,DiscriminantType>, CloneableSerializable, Pair<ValueType,DiscriminantType>, Serializable, Cloneable
Direct Known Subclasses:
DefaultValueDiscriminantPair

public abstract class AbstractValueDiscriminantPair<ValueType,DiscriminantType extends Comparable<? super DiscriminantType>>
extends AbstractCloneableSerializable
implements ValueDiscriminantPair<ValueType,DiscriminantType>

An abstract implementation of the ValueDiscriminantPair interface. Takes care of the mapping of the Pair interface methods.

Since:
3.1
Author:
Justin Basilico
See Also:
Serialized Form

Constructor Summary
AbstractValueDiscriminantPair()
          Creates a new AbstractValueDiscriminantPair.
 
Method Summary
 ValueType getFirst()
          Gets the first object.
 DiscriminantType getSecond()
          Gets the second object.
 
Methods inherited from class gov.sandia.cognition.util.AbstractCloneableSerializable
clone
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface gov.sandia.cognition.learning.data.ValueDiscriminantPair
getDiscriminant, getValue
 

Constructor Detail

AbstractValueDiscriminantPair

public AbstractValueDiscriminantPair()
Creates a new AbstractValueDiscriminantPair.

Method Detail

getFirst

public ValueType getFirst()
Description copied from interface: Pair
Gets the first object.

Specified by:
getFirst in interface Pair<ValueType,DiscriminantType extends Comparable<? super DiscriminantType>>
Returns:
The first object.

getSecond

public DiscriminantType getSecond()
Description copied from interface: Pair
Gets the second object.

Specified by:
getSecond in interface Pair<ValueType,DiscriminantType extends Comparable<? super DiscriminantType>>
Returns:
The second object.