Class com.bdnm.mvc.FloatPrintConverter
All Packages Class Hierarchy This Package Previous Next Index
Class com.bdnm.mvc.FloatPrintConverter
java.lang.Object
|
+----com.bdnm.mvc.FloatPrintConverter
- public class FloatPrintConverter
- extends Object
- implements PrintConverter
This class will convert a Float to a String
and vice versa.
-
FloatPrintConverter()
-
-
fromString(String)
- Converts a string to a generic object,
which the caller can cast to a Float.
-
toString(Object)
- Converts the given object, which I expect
to be a Float, to a string.
FloatPrintConverter
public FloatPrintConverter()
toString
public String toString(Object obj)
- Converts the given object, which I expect
to be a Float, to a string.
- Parameters:
- obj - the Float to convert to a String
- Returns:
- a string representation of the Float
fromString
public Object fromString(String stringRep)
- Converts a string to a generic object,
which the caller can cast to a Float.
- Parameters:
- stringRep - the string to convert to
an object
- Returns:
- the converted object
All Packages Class Hierarchy This Package Previous Next Index