Enum Class ConvertBigDecimal

java.lang.Object
java.lang.Enum<ConvertBigDecimal>
foundation.omni.ConvertBigDecimal
All Implemented Interfaces:
Serializable, Comparable<ConvertBigDecimal>, java.lang.constant.Constable

public enum ConvertBigDecimal extends Enum<ConvertBigDecimal>
This enumeration provides general utility functions supporting conversion of number types to BigDecimal.
  • Enum Constant Details

    • 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 Details

    • values

      public static ConvertBigDecimal[] 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

      public static ConvertBigDecimal valueOf(String name)
      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 name
      NullPointerException - if the argument is null