edu.umd.cloud9.util.pair
Class PairOfObjectInt<L extends Comparable<L>>

java.lang.Object
  extended by edu.umd.cloud9.util.pair.PairOfObjectInt<L>
All Implemented Interfaces:
Comparable<PairOfObjectInt<L>>

public class PairOfObjectInt<L extends Comparable<L>>
extends Object
implements Comparable<PairOfObjectInt<L>>


Constructor Summary
PairOfObjectInt()
           
PairOfObjectInt(L left, int right)
           
 
Method Summary
 PairOfObjectInt<L> clone()
          Creates a shallow clone of this object; the left element itself is not cloned.
 int compareTo(PairOfObjectInt<L> that)
           
 L getLeftElement()
           
 int getRightElement()
           
 void set(L left, int right)
           
 void setLeftElement(L left)
           
 void setRightElement(int right)
           
 String toString()
          Generates human-readable String representation of this pair.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PairOfObjectInt

public PairOfObjectInt(L left,
                       int right)

PairOfObjectInt

public PairOfObjectInt()
Method Detail

getLeftElement

public L getLeftElement()

getRightElement

public int getRightElement()

set

public void set(L left,
                int right)

setLeftElement

public void setLeftElement(L left)

setRightElement

public void setRightElement(int right)

toString

public String toString()
Generates human-readable String representation of this pair.

Overrides:
toString in class Object

clone

public PairOfObjectInt<L> clone()
Creates a shallow clone of this object; the left element itself is not cloned.

Overrides:
clone in class Object

compareTo

public int compareTo(PairOfObjectInt<L> that)
Specified by:
compareTo in interface Comparable<PairOfObjectInt<L extends Comparable<L>>>