Capacity
should be used instead.public final class MemorySize extends Capacity
MemoryUnit
.MemoryUnit
,
Capacity
Constructor and Description |
---|
MemorySize(long value)
Deprecated.
|
MemorySize(long value,
MemoryUnit unit)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static MemorySize |
parse(String value)
Deprecated.
since 5.1, use
Capacity.parse(String) instead. |
static MemorySize |
parse(String value,
MemoryUnit defaultUnit)
Deprecated.
since 5.1, use
Capacity.parse(String, MemoryUnit) instead |
bytes, equals, getUnit, getValue, gigaBytes, hashCode, kiloBytes, megaBytes, of, toPrettyString, toPrettyString, toPrettyString, toString
public MemorySize(long value)
public MemorySize(long value, MemoryUnit unit)
public static MemorySize parse(String value)
Capacity.parse(String)
instead.Default unit is bytes.
Examples: 12345, 12345m, 12345K, 123456G
public static MemorySize parse(String value, MemoryUnit defaultUnit)
Capacity.parse(String, MemoryUnit)
insteadUses default unit if value does not contain unit information.
Examples: 12345, 12345m, 12345K, 123456G
Copyright © 2024 Hazelcast, Inc.. All rights reserved.