public static enum Size.Unit extends Enum<Size.Unit>
Modifier and Type | Method and Description |
---|---|
static Size.Unit |
getBestUnit(long bytes) |
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 B
public static final Size.Unit KiB
public static final Size.Unit MiB
public static final Size.Unit GiB
public static final Size.Unit TiB
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 static Size.Unit getBestUnit(long bytes)
Copyright © 2015. All rights reserved.