ma.glasnost.orika.converter.builtin
Class NumericConverters

java.lang.Object
  extended by ma.glasnost.orika.converter.builtin.NumericConverters

public class NumericConverters
extends Object

NumericConverters contains a set of common conversions between the "big" value types in the java.math package (BigDecimal and BigInteger) and their related primitive wrapper types.

Author:
matt.deboer@gmail.com

Nested Class Summary
static class NumericConverters.BigDecimalToDoubleConverter
          Provides conversion between BigDecimal and Double.

Note: please consider the typical warnings regarding loss of precision when converting from BigDecimal to Double.
static class NumericConverters.BigDecimalToFloatConverter
          Provides conversion between BigDecimal and Float.

Note: please consider the typical warnings regarding loss of precision when converting from BigDecimal to Float.
static class NumericConverters.BigIntegerToIntegerConverter
          Provides conversion between BigInteger and Integer
static class NumericConverters.BigIntegerToLongConverter
          Provides conversion between BigInteger and Long.
static class NumericConverters.DoubleToIntegerConverter
          Provides conversion between Integer and Integer
static class NumericConverters.DoubleToLongConverter
          Provides conversion between Long and Integer
static class NumericConverters.DoubleToShortConverter
          Provides conversion between Short and Short
static class NumericConverters.FloatToIntegerConverter
          Provides conversion between Integer and Integer
static class NumericConverters.FloatToLongConverter
          Provides conversion between Long and Integer
static class NumericConverters.FloatToShortConverter
          Provides conversion between Short and Short
static class NumericConverters.IntegerToShortConverter
          Provides conversion between Integer and Short
static class NumericConverters.LongToIntegerConverter
          Provides conversion between Long and Integer
static class NumericConverters.LongToShortConverter
          Provides conversion between Long and Short
 
Constructor Summary
NumericConverters()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NumericConverters

public NumericConverters()


Copyright © 2013 Glasnost. All Rights Reserved.