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.

Constructor Index

 o FloatPrintConverter()

Method Index

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

Constructors

 o FloatPrintConverter
  public FloatPrintConverter()

Methods

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