public final class DepthComparator extends Object implements Comparator<Step<?,?>>
Comparator
that compares steps on the depth of the traversal that they are in.Modifier and Type | Method and Description |
---|---|
int |
compare(Step<?,?> step1,
Step<?,?> step2) |
static DepthComparator |
instance() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public static DepthComparator instance()
public int compare(Step<?,?> step1, Step<?,?> step2)
compare
in interface Comparator<Step<?,?>>
Copyright © 2013–2023 Apache Software Foundation. All rights reserved.