|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.ds.fw.types.formatter.FwFloatFormatter
| Constructor Summary | |
FwFloatFormatter()
Creates new FwFloatFormatter |
|
| Method Summary | |
static java.lang.String |
format(double val,
java.util.Locale inLocale)
Format a double value , according to the locale |
static java.lang.String |
format(float val,
java.util.Locale inLocale)
Format a float value, according to the locale |
static double |
parseDouble(java.lang.String val,
java.util.Locale inLocale)
Parse a String to get his double value |
static float |
parseFloat(java.lang.String val,
java.util.Locale inLocale)
Returns a new float initialized to the value represented by the specified String |
static int |
parseInt(java.lang.String val,
java.util.Locale inLocale)
Returns a new int initialized to the value represented by the specified String |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public FwFloatFormatter()
| Method Detail |
public static java.lang.String format(double val,
java.util.Locale inLocale)
val - - the double value we want to formatinLocale - - the locale
public static java.lang.String format(float val,
java.util.Locale inLocale)
val - - the float value we want to formatinLocale - - the locale
public static double parseDouble(java.lang.String val,
java.util.Locale inLocale)
throws java.text.ParseException
val - - the string to be parsedinLocale - - the locale
java.text.ParseException - -if the string does not contain a parsable double
public static float parseFloat(java.lang.String val,
java.util.Locale inLocale)
throws java.text.ParseException
val - - the string to be parsedinLocale - - the locale
java.text.ParseException - - if the string does not contain a parsable float
public static int parseInt(java.lang.String val,
java.util.Locale inLocale)
throws java.text.ParseException
val - - the string to be parsedinLocale - - the locale
java.text.ParseException - - if the string does not contain a parsable int
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||