|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectptolemy.data.expr.UtilityFunctions.TokenComparator
private static class UtilityFunctions.TokenComparator
Comparator for tokens.
Field Summary | |
---|---|
private boolean |
_ascending
|
Constructor Summary | |
---|---|
UtilityFunctions.TokenComparator(boolean ascending)
Construct a new comparator. |
Method Summary | |
---|---|
int |
compare(java.lang.Object arg0,
java.lang.Object arg1)
Return -1, 0, or 1 depending on whether the first argument is less than, equal to, or greater than the second. |
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 |
Field Detail |
---|
private boolean _ascending
Constructor Detail |
---|
public UtilityFunctions.TokenComparator(boolean ascending)
ascending
- True for ascending comparisons.Method Detail |
---|
public int compare(java.lang.Object arg0, java.lang.Object arg1) throws java.lang.ClassCastException
compare
in interface java.util.Comparator
arg0
- The first argument to compare.arg1
- The second argument to compare.
java.lang.ClassCastException
- If the arguments cannot
be compared.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |