|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.slim3.commons.util.NumberUtil
public final class NumberUtil
A utility class for Number.
| Method Summary | |
|---|---|
static Number |
toNumber(String text,
String pattern)
Converts text to Number. |
static String |
toString(Number value,
String pattern)
Converts the Number value to text. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Number toNumber(String text,
String pattern)
throws NullPointerException,
ParseRuntimeException
Number.
text - the textpattern - the pattern for DecimalFormat
NullPointerException - if the pattern parameter is null
ParseRuntimeException - if ParseException is encountered
public static String toString(Number value,
String pattern)
throws NullPointerException
Number value to text.
value - the Number valuepattern - the pattern for DecimalFormat
NullPointerException - if the pattern parameter is null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||