Package foundation.omni
Enum Class ConvertBigDecimal
- All Implemented Interfaces:
Serializable
,Comparable<ConvertBigDecimal>
,java.lang.constant.Constable
This enumeration provides general utility functions supporting conversion of number types to BigDecimal.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionConversion from BigDecimal.COnversion from BigDecimal, extended.Conversion from BigInteger.Default conversion based on String, if everything else failed.Conversion for floating point numbers.Conversion from integral numeric types, short, int, long.Conversion from NumberValue. -
Method Summary
Modifier and TypeMethodDescriptionstatic ConvertBigDecimal
Returns the enum constant of this class with the specified name.static ConvertBigDecimal[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INTEGER
Conversion from integral numeric types, short, int, long. -
FLUCTUAGE
Conversion for floating point numbers. -
BIGINTEGER
Conversion from BigInteger. -
NUMBERVALUE
Conversion from NumberValue. -
BIGDECIMAL
Conversion from BigDecimal. -
BIGDECIMAL_EXTENDS
COnversion from BigDecimal, extended. -
DEFAULT
Default conversion based on String, if everything else failed.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-