com.mysema.commons.lang
Class Pair<F,S>

java.lang.Object
  extended by com.mysema.commons.lang.Pair<F,S>

public class Pair<F,S>
extends Object

Typed pair of values

Author:
tiwe

Constructor Summary
Pair(F first, S second)
           
 
Method Summary
 boolean equals(Object o)
           
 F getFirst()
           
 S getSecond()
           
 int hashCode()
           
static
<F,S> Pair<F,S>
of(F f, S s)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Pair

public Pair(F first,
            S second)
Method Detail

of

public static <F,S> Pair<F,S> of(F f,
                                 S s)

equals

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

getFirst

public F getFirst()

getSecond

public S getSecond()

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2008-2012 Mysema Ltd. All Rights Reserved.