public static enum Size.Unit extends Enum<Size.Unit>
Enum Constant and Description |
---|
BYTE |
GIGABYTE |
KILOBYTE |
MEGABYTE |
PETABYTE |
TERABYTE |
Modifier and Type | Method and Description |
---|---|
int |
getOrderOfSize() |
String |
getSimpleName() |
static Size.Unit |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Size.Unit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Size.Unit PETABYTE
public static final Size.Unit TERABYTE
public static final Size.Unit GIGABYTE
public static final Size.Unit MEGABYTE
public static final Size.Unit KILOBYTE
public static final Size.Unit BYTE
public static Size.Unit[] values()
for (Size.Unit c : Size.Unit.values()) System.out.println(c);
public static Size.Unit 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 getOrderOfSize()
public String getSimpleName()
Copyright © 2007–2019 Cloudera. All rights reserved.