public static enum DisplayableValues.Scale extends Enum<DisplayableValues.Scale>
Modifier and Type | Method and Description |
---|---|
static double |
convertTo(DisplayableValues.Scale scale,
long bytes) |
static double |
convertTo(DisplayableValues.Scale scale,
long bytes,
long roundTo) |
long |
getNumBytes() |
static DisplayableValues.Scale |
getScale(long bytes) |
static DisplayableValues.Scale |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DisplayableValues.Scale[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DisplayableValues.Scale B
public static final DisplayableValues.Scale KiB
public static final DisplayableValues.Scale MiB
public static final DisplayableValues.Scale GiB
public static final DisplayableValues.Scale TiB
public static DisplayableValues.Scale[] values()
for (DisplayableValues.Scale c : DisplayableValues.Scale.values()) System.out.println(c);
public static DisplayableValues.Scale 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 getNumBytes()
public static double convertTo(DisplayableValues.Scale scale, long bytes)
public static double convertTo(DisplayableValues.Scale scale, long bytes, long roundTo)
public static DisplayableValues.Scale getScale(long bytes)
Copyright © 2013. All Rights Reserved.