Package android.util
Class Pair<F,S>
- java.lang.Object
-
- android.util.Pair<F,S>
-
- Type Parameters:
F
- The type of first value in the pair.S
- The type of second value in the pair.
public class Pair<F,S> extends java.lang.Object
Mock Pair implementation for testing on non android host.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <A,B>
Pair<A,B>create(A first, B second)
Creates a Mock pair.boolean
equals(java.lang.Object o)
int
hashCode()
java.lang.String
toString()
-
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
create
public static <A,B> Pair<A,B> create(A first, B second)
Creates a Mock pair.- Type Parameters:
A
- The first value in the pair.B
- The second value in the pair.- Parameters:
first
- The first value in the pair.second
- The second value in the pair.- Returns:
- an instance of mock pair with given values.
-
-