org.richfaces.cdk.util
Class Pair<A,B>
java.lang.Object
org.richfaces.cdk.util.Pair<A,B>
public class Pair<A,B>
- extends Object
- Author:
- asmirnov@exadel.com
|
Constructor Summary |
Pair(A first,
B second)
|
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 Object
equals
public boolean equals(Object obj)
- Overrides:
equals in class Object
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.