S
- The type of the first valueT
- The type of the second value@Deprecated
public class Pair<S,T>
extends java.lang.Object
of(S, T)
factory method.
=================================================================================================
WARNING
This copy of the class is to be used only by layoutlib and is not to be changed, EVER.
To use Pair outside of layoutlib, use com.android.utils.Pair, found in common.jar instead.
=================================================================================================Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Deprecated.
|
S |
getFirst()
Deprecated.
Return the first item in the pair
|
T |
getSecond()
Deprecated.
Return the second item in the pair
|
int |
hashCode()
Deprecated.
|
static <S,T> Pair<S,T> |
of(S first,
T second)
Deprecated.
Constructs a new pair of the given two objects, inferring generic types.
|
java.lang.String |
toString()
Deprecated.
|
public S getFirst()
public T getSecond()
public static <S,T> Pair<S,T> of(S first, T second)
S
- the type of the first itemT
- the type of the second itemfirst
- the first item to store in the pairsecond
- the second item to store in the pairpublic java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object