SimpleConfig

@SerialVersionUID(1L) object SimpleConfig

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
class Object
trait Matchable
class Any

Value members

Concrete methods

def parseBytes(input: String, originForException: ConfigOrigin, pathForException: String): Long

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

def parseDuration(input: String, originForException: ConfigOrigin, pathForException: String): Long

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

def parsePeriod(input: String, originForException: ConfigOrigin, pathForException: String): Period

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