utilMDE
Class Pair<T1,T2>

Object
  extended by Pair<T1,T2>

public class Pair<T1,T2>
extends Object

Simple pair class.


Field Summary
 T1 a
           
 T2 b
           
 
Constructor Summary
Pair(T1 a, T2 b)
           
 
Method Summary
 boolean equals(Object obj)
           
 int hashCode()
           
static
<A,B> Pair<A,B>
of(A a, B b)
          Factory method with short name and no need to name type parameters.
 String toString()
           
 
Methods inherited from class Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

a

public T1 a

b

public T2 b
Constructor Detail

Pair

public Pair(T1 a,
            T2 b)
Method Detail

of

public static <A,B> Pair<A,B> of(A a,
                                 B b)
Factory method with short name and no need to name type parameters.


toString

public String toString()
Overrides:
toString in class Object

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object