FileDocCategorySizeDatePackage
NumericConverter.javaAPI DocGlassfish v2 API3962Fri May 04 22:35:18 BST 2007com.sun.jdo.spi.persistence.support.sqlstore.utility

NumericConverter

public interface NumericConverter
This is a interface for numeric conversion to BigDecimal or BigInteger.
author
Shing Wai Chan

Fields Summary
static final int
DEFAULT_POLICY
The default policy for NumericConverter.
Constructors Summary
Methods Summary
public java.math.BigDecimaltoBigDecimal(java.math.BigInteger bInteger)
To convert BigInteger to BigDecimal.

param
bInteger the BigInteger to be converted
return
converted BigDecimal

public java.math.BigDecimaltoBigDecimal(java.lang.Double d)
To convert Double to BigDecimal.

param
d the Double to be converted
return
converted BigDecimal

public java.math.BigDecimaltoBigDecimal(java.lang.Float f)
To convert Float to BigDecimal.

param
f the Float to be converted
return
converted BigDecimal

public java.math.BigDecimaltoBigDecimal(java.lang.Number n)
To convert Number other than BigInteger, Double and Float to BigDecimal.

param
n the Number to be converted
return
converted BigDecimal

public java.math.BigIntegertoBigInteger(java.math.BigDecimal bDecimal)
To convert BigDecimal to BigInteger.

param
bDecimal the BigDecimal to be converted
return
converted BigInteger

public java.math.BigIntegertoBigInteger(java.lang.Double d)
To convert Double to BigInteger.

param
d the Double to be converted
return
converted BigInteger

public java.math.BigIntegertoBigInteger(java.lang.Float f)
To convert Float to BigInteger.

param
f the Float to be converted
return
converted BigInteger

public java.math.BigIntegertoBigInteger(java.lang.Number n)
To convert Number other than BigDecimal, Double and Float to BigInteger.

param
n the Number to be converted
return
converted BigInteger