public enum SizeUnitType extends Enum<SizeUnitType>
Enum Constant and Description |
---|
NON_SI
Kibibyte, Mebibyte, Gibibyte, Tebibyte, Pebibyte, Exbibyte, Zebibyte, Yobibyte
each step will multiply by 1024 |
SI
Kilobyte, Megabyte, Gigabyte, Terabyte, Petabyte, Exabyte, Zettabyte, Yottabyte
each step will multiply by 1000 |
Modifier and Type | Method and Description |
---|---|
int |
getSize()
get default multiply number
|
static SizeUnitType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SizeUnitType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SizeUnitType NON_SI
public static final SizeUnitType SI
public static SizeUnitType[] values()
for (SizeUnitType c : SizeUnitType.values()) System.out.println(c);
public static SizeUnitType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int getSize()
Copyright © 2017. All rights reserved.