edu.stanford.nlp.util
Class IntPair

java.lang.Object
  extended by edu.stanford.nlp.util.IntTuple
      extended by edu.stanford.nlp.util.IntPair
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<IntTuple>

public class IntPair
extends IntTuple

See Also:
Serialized Form

Constructor Summary
IntPair()
           
IntPair(int src, int trgt)
           
 
Method Summary
 boolean equals(java.lang.Object iO)
           
 IntTuple getCopy()
           
 int getSource()
          Return the first element of the pair
 int getTarget()
          Return the second element of the pair
 int hashCode()
           
 
Methods inherited from class edu.stanford.nlp.util.IntTuple
compareTo, concat, elems, get, getIntTuple, getIntTuple, length, print, set, shiftLeft, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IntPair

public IntPair()

IntPair

public IntPair(int src,
               int trgt)
Method Detail

getSource

public int getSource()
Return the first element of the pair


getTarget

public int getTarget()
Return the second element of the pair


getCopy

public IntTuple getCopy()
Overrides:
getCopy in class IntTuple

equals

public boolean equals(java.lang.Object iO)
Overrides:
equals in class IntTuple

hashCode

public int hashCode()
Overrides:
hashCode in class IntTuple


Stanford NLP Group