public static final class Fun.Tuple2Comparator<A,B> extends Object implements Comparator<Fun.Tuple2<A,B>>, Serializable
Modifier and Type | Field and Description |
---|---|
protected Comparator<A> |
a |
protected Comparator<B> |
b |
Modifier | Constructor and Description |
---|---|
|
Tuple2Comparator(Comparator<A> a,
Comparator<B> b) |
protected |
Tuple2Comparator(SerializerBase serializer,
DataInput in,
SerializerBase.FastArrayList<Object> objectStack)
constructor used for deserialization
|
Modifier and Type | Method and Description |
---|---|
int |
compare(Fun.Tuple2<A,B> o1,
Fun.Tuple2<A,B> o2) |
boolean |
equals(Object o) |
int |
hashCode() |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
protected final Comparator<A> a
protected final Comparator<B> b
public Tuple2Comparator(Comparator<A> a, Comparator<B> b)
protected Tuple2Comparator(SerializerBase serializer, DataInput in, SerializerBase.FastArrayList<Object> objectStack) throws IOException
IOException
public int compare(Fun.Tuple2<A,B> o1, Fun.Tuple2<A,B> o2)
compare
in interface Comparator<Fun.Tuple2<A,B>>
public boolean equals(Object o)
equals
in interface Comparator<Fun.Tuple2<A,B>>
equals
in class Object
Copyright © 2016. All rights reserved.