org.richfaces.cdk.util
Class Pair<A,B>
java.lang.Object
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)
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Pair
public Pair(A first,
B second)
-
- Parameters:
first - second -
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.