Enum Class NumericFormatElement

java.lang.Object
java.lang.Enum<NumericFormatElement>
dev.frostlake.functions.scalar.conversion.NumericFormatElement
All Implemented Interfaces:
Serializable, Comparable<NumericFormatElement>, Constable

public enum NumericFormatElement extends Enum<NumericFormatElement>
One element of a numeric input format model, as NumericFormatModel scans it.
  • Enum Constant Details

    • DIGIT

      public static final NumericFormatElement DIGIT
      9: a digit position that may be left out.
    • ZERO

      public static final NumericFormatElement ZERO
      0: a digit position that must be written, in a hexadecimal model as much as a decimal one.
    • HEX

      public static final NumericFormatElement HEX
      X: a hexadecimal digit position.
    • GROUP

      public static final NumericFormatElement GROUP
      , or G: a digit group separator.
    • DECIMAL

      public static final NumericFormatElement DECIMAL
      . or D: the decimal point.
    • DOLLAR

      public static final NumericFormatElement DOLLAR
      $: the currency sign.
    • PERCENT

      public static final NumericFormatElement PERCENT
      %: the value written as a percentage.
    • BLANK

      public static final NumericFormatElement BLANK
      B: a number that may start at its decimal point.
    • EXPONENT

      public static final NumericFormatElement EXPONENT
      EE to EEEEEEE: an exponent.
    • SIGN

      public static final NumericFormatElement SIGN
      S: a sign that must be written.
    • MINUS

      public static final NumericFormatElement MINUS
      MI: a sign that may be written.
    • FILL_MODE

      public static final NumericFormatElement FILL_MODE
      FM: the fill-mode toggle.
    • EXACT_MODE

      public static final NumericFormatElement EXACT_MODE
      FX: the exact-match toggle.
    • OPTIONAL_SPACE

      public static final NumericFormatElement OPTIONAL_SPACE
      _: spaces that may be written.
    • TEXT_MINIMAL

      public static final NumericFormatElement TEXT_MINIMAL
      TM: a number in positional or scientific notation.
    • TEXT_MINIMAL_POSITIONAL

      public static final NumericFormatElement TEXT_MINIMAL_POSITIONAL
      TM9: a number in positional notation.
    • TEXT_MINIMAL_SCIENTIFIC

      public static final NumericFormatElement TEXT_MINIMAL_SCIENTIFIC
      TME: a number in scientific notation.
    • LITERAL

      public static final NumericFormatElement LITERAL
      Literal text: a quoted string, or characters a model may carry as themselves.
  • Method Details

    • values

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