Package com.jidesoft.converter
Class FloatConverter
java.lang.Object
com.jidesoft.converter.NumberConverter
com.jidesoft.converter.FloatConverter
- All Implemented Interfaces:
ObjectConverter
Converter which converts Float to String and converts it back.
-
Field Summary
Fields inherited from class com.jidesoft.converter.NumberConverter
CONTEXT_FRACTION_NUMBER
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfromString
(String string, ConverterContext context) Converts from String to an object.boolean
supportFromString
(String string, ConverterContext context) If it supports fromString.Methods inherited from class com.jidesoft.converter.NumberConverter
getDefaultNumberFormat, getNumberFormat, isAvoidNegativeZero, isGroupingUsed, parseNumber, setAvoidNegativeZero, setCurrency, setFractionDigits, setGroupingUsed, setIntegerDigits, setNumberFormat, setRoundingMode, supportToString, toString
-
Constructor Details
-
FloatConverter
public FloatConverter() -
FloatConverter
-
-
Method Details
-
fromString
Description copied from interface:ObjectConverter
Converts from String to an object.- Parameters:
string
- the stringcontext
- context to be converted- Returns:
- the object converted from string
-
supportFromString
Description copied from interface:ObjectConverter
If it supports fromString.- Parameters:
string
- the stringcontext
- context to be converted- Returns:
- true if it supports
-