de.xabsl.jxabslx.conversions.impl
Class DecimalToIntegerConversion

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

public class DecimalToIntegerConversion
extends java.lang.Object
implements DecimalConversion

Conversion between XABSL decimal and java int


Constructor Summary
DecimalToIntegerConversion()
           
 
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

DecimalToIntegerConversion

public DecimalToIntegerConversion()
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.