|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectse.sics.isl.util.FormatUtils
public class FormatUtils
Method Summary | |
---|---|
static java.lang.String |
formatAmount(long amount)
Formats a currency amount as: ddd ddd ddd[.ddd] [M] |
static java.lang.String |
formatDouble(double value)
Formats a value with two decimals, using spaces to separate thousands as: ddd ddd ddd.dd. |
static java.lang.String |
formatDouble(double value,
java.lang.String separator)
Formats a value with two decimals, using the specified separator to separating thousands as: ddd ddd ddd.dd (with " " as separator). |
static java.lang.String |
formatLong(long value)
Formats a value using spaces to separate thousands as: ddd ddd ddd. |
static java.lang.String |
formatLong(long value,
java.lang.String separator)
Formats a value using the specified separator to separating thousands as: ddd ddd ddd (with " " as separator). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static java.lang.String formatAmount(long amount)
amount
- the amount to format
public static java.lang.String formatLong(long value)
value
- the value to format
public static java.lang.String formatLong(long value, java.lang.String separator)
value
- the value to formatseparator
- the separator to use
public static java.lang.String formatDouble(double value)
value
- the value to format
public static java.lang.String formatDouble(double value, java.lang.String separator)
value
- the value to formatseparator
- the separator to use
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |