net.mtu.eggplant.util
Class Pair<TYPE_ONE,TYPE_TWO>
java.lang.Object
net.mtu.eggplant.util.Pair<TYPE_ONE,TYPE_TWO>
- Type Parameters:
TYPE_ONE
- the type of the first objectTYPE_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
Pair
public Pair(TYPE_ONE one,
TYPE_TWO two)
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