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 SummaryAll 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.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface java.util.Comparatorequals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
 
- 
 
- 
- 
- 
Method Detail- 
instancepublic static DepthComparator instance() 
 - 
comparepublic int compare(Step<?,?> step1, Step<?,?> step2) - Specified by:
- comparein interface- Comparator<Step<?,?>>
 
 
- 
 
-