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.

Constructor Index

 o DoublePrintConverter()

Method Index

 o fromString(String)
Converts a string to a generic object, which the caller can cast to a Double.
 o toString(Object)
Converts the given object, which I expect to be a Double, to a string.

Constructors

 o DoublePrintConverter
  public DoublePrintConverter()

Methods

 o 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
 o 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