Enum Class FormatContext.FloatFormatMode

java.lang.Object
java.lang.Enum<FormatContext.FloatFormatMode>
org.djunits.formatter.FormatContext.FloatFormatMode
All Implemented Interfaces:
Serializable, Comparable<FormatContext.FloatFormatMode>, java.lang.constant.Constable
Enclosing class:
FormatContext

public static enum FormatContext.FloatFormatMode extends Enum<FormatContext.FloatFormatMode>
The format mode.
  • Enum Constant Details

    • FORMAT_STRING

      public static final FormatContext.FloatFormatMode FORMAT_STRING
      Use a format string.
    • VARIABLE_LENGTH

      public static final FormatContext.FloatFormatMode VARIABLE_LENGTH
      Use a variable length format -- ignore width and decimals restrictions.
    • FIXED_FLOAT

      public static final FormatContext.FloatFormatMode FIXED_FLOAT
      Always apply an "f" formatter.
    • FIXED_WITH_SCI_FALLBACK

      public static final FormatContext.FloatFormatMode FIXED_WITH_SCI_FALLBACK
      Try to apply an "f" formatter, use scientific formatting as fallback.
    • FIXED_WITH_ENG_FALLBACK

      public static final FormatContext.FloatFormatMode FIXED_WITH_ENG_FALLBACK
      Try to apply an "f" formatter, use engineering formatting (exponents are multiples of 3) as fallback.
    • SCIENTIFIC_ALWAYS

      public static final FormatContext.FloatFormatMode SCIENTIFIC_ALWAYS
      Always apply scientific formatting (e formatter).
    • ENGINEERING_ALWAYS

      public static final FormatContext.FloatFormatMode ENGINEERING_ALWAYS
      Always apply engineering formatting (e formatter where exponents are multiples of 3).
  • Method Details

    • values

      public static FormatContext.FloatFormatMode[] 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 FormatContext.FloatFormatMode 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