Package | Description |
---|---|
net.openhft.lang |
Modifier and Type | Method and Description |
---|---|
static MemoryUnit |
MemoryUnit.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MemoryUnit[] |
MemoryUnit.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
long |
MemoryUnit.align(long amountToAlign,
MemoryUnit unit)
Aligns the given memory amount in the given unit to this unit.
|
long |
MemoryUnit.alignAndConvert(long sourceAmount,
MemoryUnit sourceUnit)
Equivalent to
convert(align(sourceAmount, sourceUnit), sourceUnit) . |
long |
MemoryUnit.convert(long sourceAmount,
MemoryUnit sourceUnit)
Converts the given memory amount in the given unit to this unit.
|
Copyright © 2019. All rights reserved.