Enum FormatBehavior

java.lang.Object
java.lang.Enum<FormatBehavior>
tech.units.indriya.format.FormatBehavior
All Implemented Interfaces:
Serializable, Comparable<FormatBehavior>

public enum FormatBehavior extends Enum<FormatBehavior>
Defines different ways of formatting.
Since:
1.0
Version:
1.0
  • Enum Constant Details

    • LOCALE_NEUTRAL

      public static final FormatBehavior LOCALE_NEUTRAL
      Formatting occurs in a locale-neutral way.
    • LOCALE_SENSITIVE

      public static final FormatBehavior LOCALE_SENSITIVE
      Formatting occurs in a locale-sensitive way.
      See Also:
  • Constructor Details

    • FormatBehavior

      private FormatBehavior()
  • Method Details

    • values

      public static FormatBehavior[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static FormatBehavior valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null