org.mapdb
Class Fun.Tuple3Comparator<A,B,C>

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

public static final class Fun.Tuple3Comparator<A,B,C>
extends Object
implements Comparator<Fun.Tuple3<A,B,C>>, Serializable

See Also:
Serialized Form

Field Summary
protected  Comparator<A> a
           
protected  Comparator<B> b
           
protected  Comparator<C> c
           
 
Constructor Summary
  Fun.Tuple3Comparator(Comparator<A> a, Comparator<B> b, Comparator<C> c)
           
protected Fun.Tuple3Comparator(SerializerBase serializer, DataInput in, SerializerBase.FastArrayList<Object> objectStack, int extra)
          constructor used for deserialization, `extra` is added just to make function not to collide
 
Method Summary
 int compare(Fun.Tuple3<A,B,C> o1, Fun.Tuple3<A,B,C> 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

c

protected final Comparator<C> c
Constructor Detail

Fun.Tuple3Comparator

public Fun.Tuple3Comparator(Comparator<A> a,
                            Comparator<B> b,
                            Comparator<C> c)

Fun.Tuple3Comparator

protected Fun.Tuple3Comparator(SerializerBase serializer,
                               DataInput in,
                               SerializerBase.FastArrayList<Object> objectStack,
                               int extra)
                        throws IOException
constructor used for deserialization, `extra` is added just to make function not to collide

Throws:
IOException
Method Detail

compare

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

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2014. All Rights Reserved.