org.carrot2.util
Class Pair<I,J>

java.lang.Object
  extended by org.carrot2.util.Pair<I,J>

public class Pair<I,J>
extends Object

An immutable pair of objects.


Field Summary
 I objectA
           
 J objectB
           
 
Constructor Summary
Pair(I clazz, J parameter)
           
 
Method Summary
 boolean equals(Object obj)
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

objectA

public final I objectA

objectB

public final J objectB
Constructor Detail

Pair

public Pair(I clazz,
            J parameter)
Method Detail

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright (c) Dawid Weiss, Stanislaw Osinski