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