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

Value members

Methods

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.
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
ConfigException
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.
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
ConfigException
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.
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
ConfigException