public enum JedecByteUnit extends Enum<JedecByteUnit> implements ByteUnit
ByteUnits (or binary prefixes) which are not to be confused with the
IecByteUnits or metric units.| Enum Constant and Description |
|---|
BYTES
1
|
GIGABYTES
1,073,741,824
|
KILOBYTES
1,024
|
MEGABYTES
1,048,576
|
TERABYTES
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 JedecByteUnit |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static JedecByteUnit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JedecByteUnit BYTES
public static final JedecByteUnit KILOBYTES
public static final JedecByteUnit MEGABYTES
public static final JedecByteUnit GIGABYTES
public static final JedecByteUnit TERABYTES
public static JedecByteUnit[] values()
for (JedecByteUnit c : JedecByteUnit.values()) System.out.println(c);
public static JedecByteUnit 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.