public enum MemorySizeUnit extends Enum<MemorySizeUnit> implements LongUnaryOperator
| Enum Constant and Description |
|---|
BYTES |
ENTRIES |
GB |
GiB |
KB |
KiB |
MB |
MiB |
TB |
TiB |
| Modifier and Type | Method and Description |
|---|---|
long |
applyAsLong(long size) |
static MemorySizeUnit |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MemorySizeUnit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfandThen, compose, identitypublic static final MemorySizeUnit ENTRIES
public static final MemorySizeUnit BYTES
public static final MemorySizeUnit KB
public static final MemorySizeUnit KiB
public static final MemorySizeUnit MB
public static final MemorySizeUnit MiB
public static final MemorySizeUnit GB
public static final MemorySizeUnit GiB
public static final MemorySizeUnit TB
public static final MemorySizeUnit TiB
public static MemorySizeUnit[] values()
for (MemorySizeUnit c : MemorySizeUnit.values()) System.out.println(c);
public static MemorySizeUnit 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 applyAsLong(long size)
applyAsLong in interface LongUnaryOperatorCopyright © 2020 JBoss by Red Hat. All rights reserved.