org.mapdb
Class Fun.Tuple2Comparator<A,B>

java.lang.Object
  extended by org.mapdb.Fun.Tuple2Comparator<A,B>
All Implemented Interfaces:
Serializable, Comparator<Fun.Tuple2<A,B>>
Enclosing class:
Fun

public static final class Fun.Tuple2Comparator<A,B>
extends Object
implements Comparator<Fun.Tuple2<A,B>>, Serializable

See Also:
Serialized Form

Field Summary
protected  Comparator<A> a
           
protected  Comparator<B> b
           
 
Constructor Summary
  Fun.Tuple2Comparator(Comparator<A> a, Comparator<B> b)
           
protected Fun.Tuple2Comparator(SerializerBase serializer, DataInput in, SerializerBase.FastArrayList<Object> objectStack)
          constructor used for deserialization
 
Method Summary
 int compare(Fun.Tuple2<A,B> o1, Fun.Tuple2<A,B> o2)
           
 boolean equals(Object o)
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

a

protected final Comparator<A> a

b

protected final Comparator<B> b
Constructor Detail

Fun.Tuple2Comparator

public Fun.Tuple2Comparator(Comparator<A> a,
                            Comparator<B> b)

Fun.Tuple2Comparator

protected Fun.Tuple2Comparator(SerializerBase serializer,
                               DataInput in,
                               SerializerBase.FastArrayList<Object> objectStack)
                        throws IOException
constructor used for deserialization

Throws:
IOException
Method Detail

compare

public int compare(Fun.Tuple2<A,B> o1,
                   Fun.Tuple2<A,B> o2)
Specified by:
compare in interface Comparator<Fun.Tuple2<A,B>>

equals

public boolean equals(Object o)
Specified by:
equals in interface Comparator<Fun.Tuple2<A,B>>
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2014. All Rights Reserved.