Modifier and Type | Method and Description |
---|---|
static <K,V> Map<K,V> |
asMap(Pair<K,? extends V>... pairs) |
boolean |
equals(Object obj) |
static Pair<String,String> |
from(String stringPair)
Creates a pair from a str1,str2 pair.
|
A |
getFirst() |
A |
getKey() |
B |
getSecond() |
B |
getValue() |
int |
hashCode() |
static <A,B> Pair<A,B> |
of(A first,
B second) |
B |
setValue(B value) |
List<Object> |
toList() |
String |
toString() |
void |
writeTo(Appendable appendable) |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
comparingByKey, comparingByKey, comparingByValue, comparingByValue
@Nullable public static Pair<String,String> from(@Nonnull String stringPair)
stringPair
- - pair in the format (a,b) csv pair.public final A getFirst()
public final B getSecond()
public final boolean equals(Object obj)
public final int hashCode()
public final void writeTo(Appendable appendable) throws IOException
writeTo
in interface Writeable
IOException
Copyright © 2018 SPF4J. All rights reserved.