Modifier and Type | Method and Description |
---|---|
abstract long |
toGiga(long size) |
abstract long |
toKilo(long size) |
abstract long |
toMega(long size) |
abstract long |
toPeta(long size) |
abstract long |
toSingles(long size) |
abstract long |
toTera(long size) |
static SizeUnit |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SizeUnit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SizeUnit SINGLE
public static final SizeUnit KILO
public static final SizeUnit MEGA
public static final SizeUnit GIGA
public static final SizeUnit TERA
public static final SizeUnit PETA
public static SizeUnit[] values()
for (SizeUnit c : SizeUnit.values()) System.out.println(c);
public static SizeUnit 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 nullpublic abstract long toSingles(long size)
public abstract long toKilo(long size)
public abstract long toMega(long size)
public abstract long toGiga(long size)
public abstract long toTera(long size)
public abstract long toPeta(long size)