public enum ByteSizeStandard extends java.lang.Enum<ByteSizeStandard>
ByteSizeUnit can have. Different standards represent different
"power of" values for which byte sizes are defined in.| Enum Constant | Description |
|---|---|
IEC |
The International Electrotechnical Commission (IEC) standard.
|
SI |
The International System of Units (SI) standard.
|
| Modifier and Type | Method | Description |
|---|---|---|
static ByteSizeStandard |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static ByteSizeStandard[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ByteSizeStandard SI
public static final ByteSizeStandard IEC
public static ByteSizeStandard[] values()
for (ByteSizeStandard c : ByteSizeStandard.values()) System.out.println(c);
public static ByteSizeStandard valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullCopyright © 2012–2020 Luigi R. Viggiano. All rights reserved.