public enum ByteUnit extends Enum<ByteUnit>
| Enum Constant and Description |
|---|
BYTES |
GIGABYTES |
KILOBYTES |
MEGABYTES |
| Modifier and Type | Method and Description |
|---|---|
static ByteUnit |
getUnit(String unitString) |
String |
metric() |
long |
toBytes(long value) |
long |
toGigabytes(long value) |
long |
toKilobytes(long value) |
long |
toMegabytes(long value) |
static ByteUnit |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ByteUnit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ByteUnit BYTES
public static final ByteUnit KILOBYTES
public static final ByteUnit MEGABYTES
public static final ByteUnit GIGABYTES
public static ByteUnit[] values()
for (ByteUnit c : ByteUnit.values()) System.out.println(c);
public static ByteUnit 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 toBytes(long value)
public long toKilobytes(long value)
public long toMegabytes(long value)
public long toGigabytes(long value)
public String metric()
Copyright © 2017–2019 camunda services GmbH. All rights reserved.