public enum IecByteUnit extends Enum<IecByteUnit> implements ByteUnit
ByteUnits (or binary prefixes), not those ambiguously misused by the
media, or the JedecByteUnit units which overload the metric prefixes. :)| Enum Constant and Description |
|---|
BYTES
1
|
GIBIBYTES
1,073,741,824
|
KIBIBYTES
1,024
|
MEBIBYTES
1,048,576
|
TEBIBYTES
1,099,511,627,776
|
| Modifier and Type | Method and Description |
|---|---|
double |
convertTo(ByteUnit unit,
double value) |
long |
multiplier() |
static long |
parse(String value) |
String |
suffix() |
String |
title() |
long |
toBytes(double multiple) |
long |
toBytes(long value) |
static IecByteUnit |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static IecByteUnit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final IecByteUnit BYTES
public static final IecByteUnit KIBIBYTES
public static final IecByteUnit MEBIBYTES
public static final IecByteUnit GIBIBYTES
public static final IecByteUnit TEBIBYTES
public static IecByteUnit[] values()
for (IecByteUnit c : IecByteUnit.values()) System.out.println(c);
public static IecByteUnit 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 double convertTo(ByteUnit unit, double value)
public long multiplier()
multiplier in interface ByteUnitpublic static long parse(String value)
Copyright © 2012 Last.fm. All Rights Reserved.