net.mtu.eggplant.util
Class Pair<TYPE_ONE,TYPE_TWO>

java.lang.Object
  extended by net.mtu.eggplant.util.Pair<TYPE_ONE,TYPE_TWO>
Type Parameters:
TYPE_ONE - the type of the first object
TYPE_TWO - the type of the second object
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
StringPair

public class Pair<TYPE_ONE,TYPE_TWO>
extends Object
implements Serializable

class to put multiple objects in one.

Version:
$Revision$
See Also:
Serialized Form

Constructor Summary
Pair(TYPE_ONE one, TYPE_TWO two)
           
 
Method Summary
 boolean equals(Object o)
          Equality is defined by the equality of the objects in the Pair.
 TYPE_ONE getOne()
           
 TYPE_TWO getTwo()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Pair

public Pair(TYPE_ONE one,
            TYPE_TWO two)
Method Detail

getOne

public TYPE_ONE getOne()

getTwo

public TYPE_TWO getTwo()

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object o)
Equality is defined by the equality of the objects in the Pair.

Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object