public static enum Size.Unit extends Enum<Size.Unit>
| Enum Constant and Description | 
|---|
| BYTE | 
| GIGABYTE | 
| KILOBYTE | 
| MEGABYTE | 
| PETABYTE | 
| TERABYTE | 
| Modifier and Type | Field and Description | 
|---|---|
| private int | orderOfSize | 
| private String | simpleName | 
| 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. | 
private final int orderOfSize
private final String simpleName
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–2021 The Apache Software Foundation. All rights reserved.