|
||||||||||
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.SetterGetterOrder
public class SetterGetterOrder
Orders the items in a class according to type.
Constructor Summary | |
---|---|
SetterGetterOrder(java.lang.String ordering)
Constructor for the SetterGetterOrder object |
Method Summary | |
---|---|
protected int |
getIndex(java.lang.Object object)
Return the index of the item in the order array |
Methods inherited from class org.acm.seguin.pretty.sort.Ordering |
---|
compare |
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 SetterGetterOrder(java.lang.String ordering)
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 |
---|
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 |