public class Pair<A,B> extends Object
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
static Pair<String,String> |
from(String stringPair)
Creates a pair from a (str1,str2) pair.
|
A |
getFirst() |
B |
getSecond() |
int |
hashCode() |
static <A,B> Pair<A,B> |
of(A first,
B second) |
List<Object> |
toList() |
String |
toString() |
public static <A,B> Pair<A,B> of(A first, B second)
@Nullable public static Pair<String,String> from(String stringPair)
stringPair
- public final A getFirst()
public final B getSecond()
Copyright © 2014. All rights reserved.