org.richfaces.cdk.util
Class Pair<A,B>

java.lang.Object
  extended by org.richfaces.cdk.util.Pair<A,B>

public class Pair<A,B>
extends java.lang.Object

Author:
asmirnov@exadel.com

Constructor Summary
Pair(A first, B second)
          

 
Method Summary
 boolean equals(java.lang.Object obj)
           
 A getFirst()
          

 B getSecond()
          

 int hashCode()
           
static
<X,Y> Pair<X,Y>
of(X first, Y second)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Pair

public Pair(A first,
            B second)

Parameters:
first -
second -
Method Detail

of

public static <X,Y> Pair<X,Y> of(X first,
                                 Y second)

getFirst

public A getFirst()

Returns:
the first

getSecond

public B getSecond()

Returns:
the second

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.