- java.lang.Object
-
- java.lang.Enum<ConvertBigDecimal>
-
- life.expert.value.numeric.utils.ConvertBigDecimal
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<ConvertBigDecimal>,java.lang.constant.Constable
public enum ConvertBigDecimal extends java.lang.Enum<ConvertBigDecimal>
This enumeration provides general utility functions supporting conversion of number types to BigDecimal.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BIGDECIMALConversion from BigDecimal.BIGDECIMAL_EXTENDSConversion from BigDecimal, extended.BIGINTEGERConversion from BigInteger.DEFAULTDefault conversion based on String, if everything else failed.FLUCTUAGEConversion for floating point numbers.INTEGERConversion from integral numeric types, short, int, long.NUMBERVALUEConversion from NumberValue.
-
Method Summary
Modifier and Type Method Description static ConvertBigDecimalvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static ConvertBigDecimal[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INTEGER
public static final ConvertBigDecimal INTEGER
Conversion from integral numeric types, short, int, long.
-
FLUCTUAGE
public static final ConvertBigDecimal FLUCTUAGE
Conversion for floating point numbers.
-
BIGINTEGER
public static final ConvertBigDecimal BIGINTEGER
Conversion from BigInteger.
-
NUMBERVALUE
public static final ConvertBigDecimal NUMBERVALUE
Conversion from NumberValue.
-
BIGDECIMAL
public static final ConvertBigDecimal BIGDECIMAL
Conversion from BigDecimal.
-
BIGDECIMAL_EXTENDS
public static final ConvertBigDecimal BIGDECIMAL_EXTENDS
Conversion from BigDecimal, extended.
-
DEFAULT
public static final ConvertBigDecimal DEFAULT
Default conversion based on String, if everything else failed.
-
-
Method Detail
-
values
public static ConvertBigDecimal[] values()
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ConvertBigDecimal valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-