public class TupleComparator<K,V> extends Object implements Comparator<Tuple<K,V>>
| Constructor and Description |
|---|
TupleComparator(Comparator<K> keyComparator,
Comparator<V> valueComparator)
Creates a new instance of TupleComparator.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compare(Tuple<K,V> t1,
Tuple<K,V> t2)
Compare two tuples.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequalspublic TupleComparator(Comparator<K> keyComparator, Comparator<V> valueComparator)
keyComparator - The inner key comparatorvalueComparator - The inner value comparatorpublic int compare(Tuple<K,V> t1, Tuple<K,V> t2)
compare in interface Comparator<Tuple<K,V>>t1 - The first tuplet2 - The second tupleCopyright © 2012–2015 Apache Mavibot Project Parent. All rights reserved.