public abstract class OrderingCompareAgent<T>
extends java.lang.Object
Constructor and Description |
---|
OrderingCompareAgent(T a,
T b) |
Modifier and Type | Method and Description |
---|---|
int |
compare() |
protected boolean |
consider(int partial) |
protected abstract void |
doCompare() |
protected static int |
dontCare() |
protected boolean |
isUnknown() |
protected static int |
preferFalse(boolean b1,
boolean b2) |
protected static <U> int |
preferLess(java.lang.Comparable<U> c1,
U c2) |
protected static <U> int |
preferLess(U c1,
U c2,
java.util.Comparator<U> comp) |
protected static <U> int |
preferMore(java.lang.Comparable<U> c1,
U c2) |
protected static <U> int |
preferMore(U c1,
U c2,
java.util.Comparator<U> comp) |
protected static int |
preferTrue(boolean b1,
boolean b2) |
protected boolean |
swallowBoolean(boolean x) |
protected abstract void doCompare()
public int compare()
protected boolean isUnknown()
protected boolean consider(int partial)
protected boolean swallowBoolean(boolean x)
protected static int dontCare()
protected static int preferTrue(boolean b1, boolean b2)
protected static int preferFalse(boolean b1, boolean b2)
protected static <U> int preferLess(java.lang.Comparable<U> c1, U c2)
protected static <U> int preferLess(U c1, U c2, java.util.Comparator<U> comp)
protected static <U> int preferMore(java.lang.Comparable<U> c1, U c2)
protected static <U> int preferMore(U c1, U c2, java.util.Comparator<U> comp)