Package org.djunits.formatter
Enum Class FormatContext.FloatFormatMode
- All Implemented Interfaces:
Serializable,Comparable<FormatContext.FloatFormatMode>,java.lang.constant.Constable
- Enclosing class:
- FormatContext
The format mode.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAlways apply engineering formatting (e formatter where exponents are multiples of 3).Always apply an "f" formatter.Try to apply an "f" formatter, use engineering formatting (exponents are multiples of 3) as fallback.Try to apply an "f" formatter, use scientific formatting as fallback.Use a format string.Always apply scientific formatting (e formatter).Use a variable length format -- ignore width and decimals restrictions. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static FormatContext.FloatFormatMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FORMAT_STRING
Use a format string. -
VARIABLE_LENGTH
Use a variable length format -- ignore width and decimals restrictions. -
FIXED_FLOAT
Always apply an "f" formatter. -
FIXED_WITH_SCI_FALLBACK
Try to apply an "f" formatter, use scientific formatting as fallback. -
FIXED_WITH_ENG_FALLBACK
Try to apply an "f" formatter, use engineering formatting (exponents are multiples of 3) as fallback. -
SCIENTIFIC_ALWAYS
Always apply scientific formatting (e formatter). -
ENGINEERING_ALWAYS
Always apply engineering formatting (e formatter where exponents are multiples of 3).
-
-
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
-