de.xabsl.jxabslx.conversions.impl
Class DecimalToFloatConversion

java.lang.Object
  extended by de.xabsl.jxabslx.conversions.impl.DecimalToFloatConversion
All Implemented Interfaces:
DecimalConversion

public class DecimalToFloatConversion
extends java.lang.Object
implements DecimalConversion

Conversion between XABSL decimal and java float


Constructor Summary
DecimalToFloatConversion()
           
 
Method Summary
 double from(java.lang.Object value)
          Convert an object to a double
 java.lang.Object to(double value)
          Convert a double to an Object
 java.lang.Class<?> type()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DecimalToFloatConversion

public DecimalToFloatConversion()
Method Detail

from

public double from(java.lang.Object value)
Description copied from interface: DecimalConversion
Convert an object to a double

Specified by:
from in interface DecimalConversion
Parameters:
value - Must be of the type returned by type()
Returns:
The converted value

to

public java.lang.Object to(double value)
Description copied from interface: DecimalConversion
Convert a double to an Object

Specified by:
to in interface DecimalConversion
Parameters:
value - Any double value
Returns:
The converted value. The object must be of the type returned by type()

type

public java.lang.Class<?> type()
Specified by:
type in interface DecimalConversion
Returns:
The type that this converter handles.