F - First value typeS - Second value typepublic class Pair<F,S> extends Object implements Map.Entry<F,S>
| Modifier and Type | Method and Description |
|---|---|
static <K extends Comparable<K>,V> |
byKeyEntryComparator() |
boolean |
equals(Object obj) |
F |
getFirst() |
F |
getKey() |
S |
getSecond() |
S |
getValue() |
int |
hashCode() |
S |
setValue(S value) |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcomparingByKey, comparingByKey, comparingByValue, comparingByValuepublic final F getFirst()
public final S getSecond()
public int hashCode()
public boolean equals(Object obj)
public static <K extends Comparable<K>,V> Comparator<Map.Entry<K,V>> byKeyEntryComparator()
K - The Comparable key typeV - The associated entry valueComparator for Map.Entry-ies that
compares the key valuesCopyright © 2008–2017 The Apache Software Foundation. All rights reserved.