Class MemorySizeConverter

    • Field Detail

    • Constructor Detail

      • MemorySizeConverter

        public MemorySizeConverter()
    • Method Detail

      • convert

        public 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.
        Specified by:
        convert in interface org.eclipse.microprofile.config.spi.Converter<MemorySize>
        Parameters:
        value - - value to convert.
        Returns:
        MemorySize - a memory size represented by the given value