Class DepthComparator
- java.lang.Object
-
- org.apache.tinkerpop.gremlin.process.traversal.util.DepthComparator
-
- All Implemented Interfaces:
Comparator<Step<?,?>>
public final class DepthComparator extends Object implements Comparator<Step<?,?>>
AComparatorthat compares steps on the depth of the traversal that they are in.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompare(Step<?,?> step1, Step<?,?> step2)static DepthComparatorinstance()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
-
-
-
Method Detail
-
instance
public static DepthComparator instance()
-
compare
public int compare(Step<?,?> step1, Step<?,?> step2)
- Specified by:
comparein interfaceComparator<Step<?,?>>
-
-