com.todoroo.andlib.utility
Class Pair<L,R>
java.lang.Object
com.todoroo.andlib.utility.Pair<L,R>
- Type Parameters:
L
- R
-
public class Pair<L,R>
- extends java.lang.Object
Pair utility class
- Author:
- Tim Su
Constructor Summary |
Pair(L left,
R right)
|
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, toString, wait, wait, wait |
Pair
public Pair(L left,
R right)
getRight
public R getRight()
getLeft
public L getLeft()
create
public static <A,B> Pair<A,B> create(A left,
B right)
equals
public final boolean equals(java.lang.Object o)
- Overrides:
equals
in class java.lang.Object
equal
public static final boolean equal(java.lang.Object o1,
java.lang.Object o2)
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object