- All Implemented Interfaces:
Serializable
,Comparable<Size.UnitKind>
,Constable
- Enclosing interface:
Size
Kind of units, used for printing out the correct unit.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe multiplier always containsi
, the second is upper case B, such aseB, KiB, MiB
.All letters are upper case, such asB, KB, MB
.All letters are lower case, such asb, kb, mb
.The first letter (if two lettered) is lower case, the second is upper case, such aseB, kB, mB
. -
Method Summary
Modifier and TypeMethodDescriptionstatic Size.UnitKind
Returns the enum constant of this class with the specified name.static Size.UnitKind[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DECIMAL_UPPER_CASE
The first letter (if two lettered) is lower case, the second is upper case, such aseB, kB, mB
. These represent powers of 1000. -
DECIMAL_LOWER_CASE
All letters are lower case, such asb, kb, mb
. These represent powers of 1000. -
BINARY_BI
The multiplier always containsi
, the second is upper case B, such aseB, KiB, MiB
. These represent powers of 1024. -
BINARY_UPPER_CASE
All letters are upper case, such asB, KB, MB
. These represent powers of 1024.
-
-
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
-