se.lth.cs.nlp.nlputils.core
Class Pair<T1,T2>

java.lang.Object
  extended by 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.
 
Method Summary
 boolean equals(Object o)
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

left

public T1 left
The left element.


right

public T2 right
The right element.

Constructor Detail

Pair

public Pair(T1 left,
            T2 right)
Constructs a Pair of the two given arguments.

Method Detail

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