|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.acm.seguin.pretty.sort.Ordering
public abstract class Ordering
The ordering is the basic tool to determine if the parse tree node is in the proper order. This object contains the base class for the order.
Constructor Summary | |
---|---|
Ordering()
|
Method Summary | |
---|---|
int |
compare(java.lang.Object one,
java.lang.Object two)
Compare two items |
protected abstract int |
getIndex(java.lang.Object object)
Return the index of the item in the order array |
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 |
Constructor Detail |
---|
public Ordering()
Method Detail |
---|
public int compare(java.lang.Object one, java.lang.Object two)
compare
in interface java.util.Comparator
one
- the first itemtwo
- the second item
protected abstract int getIndex(java.lang.Object object)
object
- the object we are checking
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |