javatools.util
Class OrdinalPostfix

java.lang.Object
  |
  +--javatools.util.OrdinalPostfix

public class OrdinalPostfix
extends java.lang.Object

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

OrdinalPostfix

public OrdinalPostfix()
Method Detail

postfix

public static java.lang.String postfix(int number)
Returns the correct postfix string.

Parameters:
number - The number to base the choice from.
Returns:
The postfix to use.