public class StateProbComparator extends Object implements Comparator<State>
Constructor and Description |
---|
StateProbComparator(boolean ascendent) |
Modifier and Type | Method and Description |
---|---|
int |
compare(State s1,
State s2) |
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 StateProbComparator(boolean ascendent)
ascendent
- true if sorting order is ascendent (false otherwise)public int compare(State s1, State s2)
compare
in interface Comparator<State>
Copyright © 2005–2020. All rights reserved.