|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javatools.util.OrdinalPostfix
This class returns the bit that you tag onto the end of number. e.g. if you pass in the number "1" it will return "st", as in 1st. If you pass in "2" it will return "nd", as in "2nd". etc. Yes, the name is pretty wierd, but what can you name something like this?
Constructor Summary | |
OrdinalPostfix()
|
Method Summary | |
static java.lang.String |
postfix(int number)
Returns the correct postfix string. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public OrdinalPostfix()
Method Detail |
public static java.lang.String postfix(int number)
number
- The number to base the choice from.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |