se.lth.cs.nlp.nlputils.core
Class Pair<T1,T2>
java.lang.Object
se.lth.cs.nlp.nlputils.core.Pair<T1,T2>
- All Implemented Interfaces:
- Serializable
public class Pair<T1,T2>
- extends Object
- implements Serializable
A pair consisting of a left and a right element.
- Author:
- Richard Johansson (richard@cs.lth.se)
- See Also:
- Serialized Form
Field Summary |
T1 |
left
The left element. |
T2 |
right
The right element. |
Constructor Summary |
Pair(T1 left,
T2 right)
Constructs a Pair of the two given arguments. |
left
public T1 left
- The left element.
right
public T2 right
- The right element.
Pair
public Pair(T1 left,
T2 right)
- Constructs a Pair of the two given arguments.
toString
public String toString()
- Overrides:
toString
in class Object
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object