Class FunctionComparator<A,B>
- java.lang.Object
-
- org.apache.tinkerpop.gremlin.process.traversal.step.util.FunctionComparator<A,B>
-
- All Implemented Interfaces:
Serializable
,Comparator<A>
public final class FunctionComparator<A,B> extends Object implements Comparator<A>, Serializable
- Author:
- Marko A. Rodriguez (http://markorodriguez.com)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FunctionComparator(Function<A,B> function, Comparator<B> comparator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(A first, A second)
Comparator<B>
getComparator()
Function<A,B>
getFunction()
String
toString()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
-
-
-
Constructor Detail
-
FunctionComparator
public FunctionComparator(Function<A,B> function, Comparator<B> comparator)
-
-