|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.acm.seguin.pretty.sort.Ordering
org.acm.seguin.pretty.sort.FixupFinalStaticOrder
public class FixupFinalStaticOrder
Orders the items in a class according to dependencies for final static constants.
Constructor Summary | |
---|---|
FixupFinalStaticOrder()
Constructor for the StaticOrder object |
Method Summary | |
---|---|
int |
compare(java.lang.Object obj1,
java.lang.Object obj2)
Description of the Method |
protected 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 FixupFinalStaticOrder()
The string should either be "instance", "static", or "class". "instance" means that instance variables should go first. Either of the other two ordering strings indicate that the class variables or methods should go first.
ordering
- A user specified string that describes the order.Method Detail |
---|
public int compare(java.lang.Object obj1, java.lang.Object obj2)
compare
in interface java.util.Comparator
compare
in class Ordering
obj1
- Description of Parameterobj2
- Description of Parameter
protected int getIndex(java.lang.Object object)
getIndex
in class Ordering
object
- the object we are checking
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |