Parses a size-in-bytes string.
Parses a size-in-bytes string. If no units are specified in the string, it is assumed to be in bytes. The returned value is in bytes. The purpose of this function is to implement the size-in-bytes-related methods in the Config interface.
the string to parse
origin of the value being parsed
path to include in exceptions
size in bytes
ConfigException
if string is invalid
Parses a duration string.
Parses a duration string. If no units are specified in the string, it is assumed to be in milliseconds. The returned duration is in nanoseconds. The purpose of this function is to implement the duration-related methods in the ConfigObject interface.
the string to parse
origin of the value being parsed
path to include in exceptions
duration in nanoseconds
ConfigException
if string is invalid
Parses a period string.
Parses a period string. If no units are specified in the string, it is assumed to be in days. The returned period is in days. The purpose of this function is to implement the period-related methods in the ConfigObject interface.
the string to parse
origin of the value being parsed
path to include in exceptions
duration in days
ConfigException
if string is invalid
One thing to keep in mind in the future: as Collection-like APIs are added here, including iterators or size() or anything, they should be consistent with a one-level java.util.Map from paths to non-null values. Null values are not "in" the map.