Class BigDecimalStringConverter
A
StringConverter implementation for BigDecimal values.- Since:
- JavaFX 2.1
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfromString(String value) Converts a string to an object.toString(BigDecimal value) Converts an object to a string form.
-
Constructor Details
-
BigDecimalStringConverter
public BigDecimalStringConverter()Creates a defaultBigDecimalStringConverter.
-
-
Method Details
-
fromString
Converts a string to an object. The parsing mechanism is defined by the specific converter.nulland empty string are converted tonull.- Parameters:
value- theStringto convert- Returns:
- an object of type
Tcreated from the string passed in
-
toString
Converts an object to a string form. The format of the returned string is defined by the specific converter.nullis converted to an empty string, otherwise the type'stoStringis used.- Parameters:
value- the object of typeTto convert- Returns:
- a string representation of the object passed in
-