com.todoroo.andlib.utility
Class Pair<L,R>

java.lang.Object
  extended by 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)
           
 
Method Summary
static
<A,B> Pair<A,B>
create(A left, B right)
           
static boolean equal(java.lang.Object o1, java.lang.Object o2)
           
 boolean equals(java.lang.Object o)
           
 L getLeft()
           
 R getRight()
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Pair

public Pair(L left,
            R right)
Method Detail

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