Enum HumanReadableBytes.UnitSystem
- java.lang.Object
-
- java.lang.Enum<HumanReadableBytes.UnitSystem>
-
- org.apache.druid.java.util.common.HumanReadableBytes.UnitSystem
-
- All Implemented Interfaces:
Serializable
,Comparable<HumanReadableBytes.UnitSystem>
- Enclosing class:
- HumanReadableBytes
public static enum HumanReadableBytes.UnitSystem extends Enum<HumanReadableBytes.UnitSystem>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BINARY_BYTE
also known as IEC format eg: B, KiB, MiB, GiB ...DECIMAL
simplified SI format without 'B' indicator eg: K, M, G ...DECIMAL_BYTE
also known as SI format eg: B, KB, MB ...
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static HumanReadableBytes.UnitSystem
valueOf(String name)
Returns the enum constant of this type with the specified name.static HumanReadableBytes.UnitSystem[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BINARY_BYTE
public static final HumanReadableBytes.UnitSystem BINARY_BYTE
also known as IEC format eg: B, KiB, MiB, GiB ...
-
DECIMAL_BYTE
public static final HumanReadableBytes.UnitSystem DECIMAL_BYTE
also known as SI format eg: B, KB, MB ...
-
DECIMAL
public static final HumanReadableBytes.UnitSystem DECIMAL
simplified SI format without 'B' indicator eg: K, M, G ...
-
-
Method Detail
-
values
public static HumanReadableBytes.UnitSystem[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (HumanReadableBytes.UnitSystem c : HumanReadableBytes.UnitSystem.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static HumanReadableBytes.UnitSystem 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
-
-