public enum SizeUnit extends Enum<SizeUnit>
| Modifier and Type | Method and Description |
|---|---|
long |
toGiga(long size) |
long |
toKilo(long size) |
long |
toMega(long size) |
long |
toSingles(long size) |
static SizeUnit |
valueOf(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 SizeUnit[] values()
for (SizeUnit c : SizeUnit.values()) System.out.println(c);
public static SizeUnit 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 long toSingles(long size)
public long toKilo(long size)
public long toMega(long size)
public long toGiga(long size)
Copyright © 2020. All rights reserved.