@Priority(value=200) public class MemorySizeConverter extends Object implements org.eclipse.microprofile.config.spi.Converter<MemorySize>, Serializable
| Modifier and Type | Field and Description |
|---|---|
(package private) static BigInteger |
KILO_BYTES |
| Constructor and Description |
|---|
MemorySizeConverter() |
| Modifier and Type | Method and Description |
|---|---|
MemorySize |
convert(String value)
Convert data size configuration value respecting the following format (shown in regular expression)
"[0-9]+[BbKkMmGgTtPpEeZzYy]?"
If the value contain no suffix, the size is treated as bytes.
|
static final BigInteger KILO_BYTES
public MemorySize convert(String value)
convert in interface org.eclipse.microprofile.config.spi.Converter<MemorySize>value - - value to convert.MemorySize - a memory size represented by the given valueCopyright © 2021 JBoss by Red Hat. All rights reserved.