Package tech.units.indriya.format
Enum SimpleUnitFormat.Flavor
- java.lang.Object
-
- java.lang.Enum<SimpleUnitFormat.Flavor>
-
- tech.units.indriya.format.SimpleUnitFormat.Flavor
-
- All Implemented Interfaces:
Serializable,Comparable<SimpleUnitFormat.Flavor>,java.lang.constant.Constable
- Enclosing class:
- SimpleUnitFormat
public static enum SimpleUnitFormat.Flavor extends Enum<SimpleUnitFormat.Flavor>
Flavor of this format- Author:
- Werner
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
-
Method Summary
Modifier and Type Method Description static SimpleUnitFormat.FlavorvalueOf(String name)Returns the enum constant of this type with the specified name.static SimpleUnitFormat.Flavor[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Default
public static final SimpleUnitFormat.Flavor Default
-
ASCII
public static final SimpleUnitFormat.Flavor ASCII
-
-
Method Detail
-
values
public static SimpleUnitFormat.Flavor[] 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 SimpleUnitFormat.Flavor 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 nameNullPointerException- if the argument is null
-
-