Enum Class 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>,Constable
- Enclosing class:
- HumanReadableBytes
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionalso known as IEC format eg: B, KiB, MiB, GiB ...simplified SI format without 'B' indicator eg: K, M, G ...also known as SI format eg: B, KB, MB ... -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static HumanReadableBytes.UnitSystem[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BINARY_BYTE
also known as IEC format eg: B, KiB, MiB, GiB ... -
DECIMAL_BYTE
also known as SI format eg: B, KB, MB ... -
DECIMAL
simplified SI format without 'B' indicator eg: K, M, G ...
-
-
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
-