|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.taco.text.AbstractStringToObjectConverter
com.taco.text.StringToFloatConverter
public final class StringToFloatConverter
A string to object converter that converts number strings into instances of
Float
.
Field Summary | |
---|---|
static StringToFloatConverter |
instance
The singleton instance of this class. |
Method Summary | |
---|---|
java.lang.Object |
toObject(java.lang.String s)
Convert the string using Float.valueOf() . |
Methods inherited from class com.taco.text.AbstractStringToObjectConverter |
---|
map |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final StringToFloatConverter instance
Method Detail |
---|
public java.lang.Object toObject(java.lang.String s) throws java.text.ParseException
Float.valueOf()
.
toObject
in interface IStringToObjectConverter
Float
wrapping the converted
value.
java.text.ParseException
- if Float.valueOf()
throws a
NumberFormatException
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |