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.
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.
- Companion
- class
Value members
Concrete methods
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.
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.
- Value Params
- input
the string to parse
- originForException
origin of the value being parsed
- pathForException
path to include in exceptions
- Returns
size in bytes
- Throws
- ConfigException
if string is invalid
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.
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.
- Value Params
- input
the string to parse
- originForException
origin of the value being parsed
- pathForException
path to include in exceptions
- Returns
duration in nanoseconds
- Throws
- ConfigException
if string is invalid
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.
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.
- Value Params
- input
the string to parse
- originForException
origin of the value being parsed
- pathForException
path to include in exceptions
- Returns
duration in days
- Throws
- ConfigException
if string is invalid