edu.stanford.nlp.util
Class UnorderedPair

java.lang.Object
  |
  +--edu.stanford.nlp.util.Pair
        |
        +--edu.stanford.nlp.util.UnorderedPair
All Implemented Interfaces:
Comparable, Serializable

public class UnorderedPair
extends Pair

Unordered Pair Class for holding an unordered pair of objects

See Also:
Serialized Form

Field Summary
 
Fields inherited from class edu.stanford.nlp.util.Pair
first, second
 
Constructor Summary
UnorderedPair()
           
UnorderedPair(Object first, Object second)
           
 
Method Summary
 boolean equals(Object o)
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class edu.stanford.nlp.util.Pair
compareTo, first, read, save, second
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UnorderedPair

public UnorderedPair()

UnorderedPair

public UnorderedPair(Object first,
                     Object second)
Method Detail

toString

public String toString()
Overrides:
toString in class Pair

equals

public boolean equals(Object o)
Overrides:
equals in class Pair

hashCode

public int hashCode()
Overrides:
hashCode in class Pair


Stanford NLP Group