public enum MaxSizeUnits extends Enum<MaxSizeUnits>
| Enum Constant and Description |
|---|
GIGABYTES
Enum value Gigabytes.
|
MEGABYTES
Enum value Megabytes.
|
PETABYTES
Enum value Petabytes.
|
TERABYTES
Enum value Terabytes.
|
| Modifier and Type | Method and Description |
|---|---|
static MaxSizeUnits |
fromString(String value)
Parses a serialized value to a MaxSizeUnits instance.
|
String |
toString() |
static MaxSizeUnits |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MaxSizeUnits[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MaxSizeUnits MEGABYTES
public static final MaxSizeUnits GIGABYTES
public static final MaxSizeUnits TERABYTES
public static final MaxSizeUnits PETABYTES
public static MaxSizeUnits[] values()
for (MaxSizeUnits c : MaxSizeUnits.values()) System.out.println(c);
public static MaxSizeUnits 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 static MaxSizeUnits fromString(String value)
value - the serialized value to parse.public String toString()
toString in class Enum<MaxSizeUnits>Copyright © 2019. All rights reserved.