|
OBEROn SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.oberon.util.NumberFormatter
public class NumberFormatter
Class NumberFormatter defines a method to format a Vector of integers as a character string according to a supplied format specification.
Constructor Summary | |
---|---|
NumberFormatter()
|
Method Summary | |
---|---|
java.lang.String |
format(int number,
int groupSize,
java.lang.String groupSeparator,
java.lang.String letterValue,
Numberer numberer)
Format a single number. |
java.lang.String |
format(java.util.Vector<java.lang.Integer> numbers,
int groupSize,
java.lang.String groupSeparator,
java.lang.String letterValue,
Numberer numberer)
Format a vector of numbers. |
Numberer |
getNumberer()
|
void |
prepare(java.lang.String format)
Tokenize the format pattern. |
void |
setNumberer(Numberer numberer)
Allocate a numberer appropriate to the selected language |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NumberFormatter()
Method Detail |
---|
public void setNumberer(Numberer numberer)
public Numberer getNumberer()
public void prepare(java.lang.String format)
format
- the format specification. Contains one of the following values:public java.lang.String format(java.util.Vector<java.lang.Integer> numbers, int groupSize, java.lang.String groupSeparator, java.lang.String letterValue, Numberer numberer)
numbers
- the numbers to be formatted (a sequence of integer values)
public java.lang.String format(int number, int groupSize, java.lang.String groupSeparator, java.lang.String letterValue, Numberer numberer)
|
OBEROn SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |