| Modifier and Type | Class and Description |
|---|---|
| private static enum |
| Modifier and Type | Field and Description |
|---|---|
| private final AbstractConfigObject | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private static void | addMissing(List<ConfigException.
|
| private static void | addMissing(List<ConfigException.
|
| pack-priv static void | addMissing(List<ConfigException.
|
| private static void | addProblem(List<ConfigException.
|
| private static void | addWrongType(List<ConfigException.
|
| private static void | addWrongType(List<ConfigException.
|
| private static void | addWrongType(List<ConfigException.
|
| pack-priv SimpleConfig | |
| public SimpleConfig | atKey(String
key to store this config at. key)Implements com. Places the config inside a |
| public Config | atPath(String
path expression to store this config at. path)Implements com. Places the config inside another |
| private static void | checkListCompatibility(Path path, SimpleConfigList listRef, SimpleConfigList listValue, List<ConfigException.
|
| pack-priv static void | checkValid(Path path, ConfigValueType referenceType, AbstractConfigValue value, List<ConfigException.
|
| private static void | checkValid(Path path, ConfigValue reference, AbstractConfigValue value, List<ConfigException.
|
| public void | checkValid(Config
a reference configuration reference, String... only validate values underneath these paths that your code
module owns and understands restrictToPaths)Implements com. Validates this config against a reference config, throwing an exception if it is invalid. |
| private static void | checkValidObject(Path path, AbstractConfigObject reference, AbstractConfigObject value, List<ConfigException.
|
| private static boolean | |
| public Set | entrySet()
Implements com. Returns the set of path-value pairs, excluding any null values, found by
recursing |
| public final boolean | equals(Object
the reference object with which to compare. other)Overrides java. Indicates whether some other object is "equal to" this one. |
| pack-priv AbstractConfigValue | |
| pack-priv AbstractConfigValue | |
| private static AbstractConfigValue | |
| private static AbstractConfigValue | |
| private static AbstractConfigValue | |
| private AbstractConfigValue | |
| private AbstractConfigValue | |
| private static void | |
| public Object | getAnyRef(String
path expression path)Implements com. Gets the value at the path as an unwrapped Java boxed value (
|
| public List | getAnyRefList(String
the path to the list value. path)Implements com. Gets a list value with any kind of elements. |
| public boolean | |
| public List | getBooleanList(String
the path to the list value. path)Implements com. Gets a list value with boolean elements. |
| public Long | getBytes(String
path expression path)Implements com. Gets a value as a size in bytes (parses special strings like "128M"). |
| private BigInteger | |
| public List | getBytesList(String
the path to the list value. path)Implements com. Gets a list value with elements representing a size in bytes. |
| private List | |
| public SimpleConfig | |
| public List | getConfigList(String
the path to the list value. path)Implements com. Gets a list value with |
| private ConfigNumber | |
| private static String | |
| private static String | |
| public double | |
| public List | getDoubleList(String
the path to the list value. path)Implements com. Gets a list value with double elements. |
| public long | getDuration(String
path expression path, TimeUnit convert the return value to this time unit unit)Implements com. Gets a value as a duration in a specified
|
| public Duration | getDuration(String
path expression path)Implements com. Gets a value as a java.time.Duration. |
| public List | getDurationList(String
a path expression path, TimeUnit time units of the returned values unit)Implements com. Gets a list, converting each value in the list to a duration, using the
same rules as |
| public List | getDurationList(String
a path expression path)Implements com. Gets a list, converting each value in the list to a duration, using the
same rules as |
| public <T extends Enum | getEnum(Class<T>
an enum class enumClass, String path expression path)Implements com.
|
| public <T extends Enum | getEnumList(Class<T>
the enum class enumClass, String the path to the list value. path)Implements com. Gets a list value with |
| private <T extends Enum | |
| private <T> List | |
| private <T extends ConfigValue> List | |
| public int | getInt(String
path expression path)Implements com. Gets the integer at the given path. |
| public List | getIntList(String
the path to the list value. path)Implements com. Gets a list value with int elements. |
| public boolean | getIsNull(String
the path expression path)Implements com. Checks whether a value is set to null at the given path, but throws an exception if the value is entirely unset. |
| public ConfigList | getList(String
the path to the list value. path)Implements com. Gets a list value (with any element type) as a |
| public long | getLong(String
path expression path)Implements com. Gets the long integer at the given path. |
| public List | getLongList(String
the path to the list value. path)Implements com. Gets a list value with long elements. |
| public ConfigMemorySize | getMemorySize(String
path expression path)Implements com. Gets a value as an amount of memory (parses special strings like "128M"). |
| public List | getMemorySizeList(String
a path expression path)Implements com. Gets a list, converting each value in the list to a memory size, using the
same rules as |
| public Long | getMilliseconds(String
path expression path)Implements com.
Deprecated
Get value as a duration in milliseconds. |
| public List | getMillisecondsList(String
the path path)Implements com.
Deprecated
|
| public Long | getNanoseconds(String
path expression path)Implements com.
Deprecated
Get value as a duration in nanoseconds. |
| public List | getNanosecondsList(String
the path path)Implements com.
Deprecated
|
| public Number | |
| public List | getNumberList(String
the path to the list value. path)Implements com. Gets a list value with number elements. |
| public AbstractConfigObject | |
| public List | getObjectList(String
the path to the list value. path)Implements com. Gets a list value with object elements. |
| public Period | getPeriod(String
path expression path)Implements com. Gets a value as a java.time.Period. |
| public String | |
| public List | getStringList(String
the path to the list value. path)Implements com. Gets a list value with string elements. |
| public TemporalAmount | getTemporal(String
path expression path)Implements com. Gets a value as a java.time.temporal.TemporalAmount. |
| private static String | |
| public AbstractConfigValue | getValue(String
path expression path)Implements com. Gets the value at the given path, unless the value is a null value or missing, in which case it throws just like the other getters. |
| public final int | |
| public boolean | hasPath(String
the path expression pathExpression)Implements com. Checks whether a value is present and non-null at the given path. |
| public boolean | hasPathOrNull(String
the path expression path)Implements com. Checks whether a value is present at the given path, even if the value is null. |
| private ConfigValue | |
| private static boolean | |
| private static boolean | |
| public boolean | isEmpty()
Implements com. Returns true if the |
| public boolean | isResolved()
Implements com. Checks whether the config is completely resolved. |
| public ConfigOrigin | origin()
Implements com. Gets the origin of the |
| public static BigInteger | Returns: size in bytesthe string to parse input, ConfigOrigin origin of the value being parsed originForException, String path to include in exceptions pathForException)Parses a size-in-bytes string. |
| public static long | Returns: duration in nanosecondsthe string to parse input, ConfigOrigin origin of the value being parsed originForException, String path to include in exceptions pathForException)Parses a duration string. |
| public static Period | Returns: duration in daysthe string to parse input, ConfigOrigin origin of the value being parsed originForException, String path to include in exceptions pathForException)Parses a period string. |
| private AbstractConfigValue | |
| private static Period | |
| public SimpleConfig | resolve()
Implements com. Returns a replacement config with all substitutions (the
|
| public SimpleConfig | resolve(ConfigResolveOptions
resolve options options)Implements com. Like |
| public SimpleConfig | resolveWith(Config
configuration to pull values from source)Implements com. Like |
| public SimpleConfig | resolveWith(Config
source configuration to pull values from source, ConfigResolveOptions resolve options options)Implements com. Like |
| public AbstractConfigObject | |
| private static AbstractConfigValue | |
| public AbstractConfigObject | |
| private Long | |
| public String | |
| public SimpleConfig | withFallback(ConfigMergeable
an object whose keys should be used as fallbacks, if the keys
are not present in this one other)Implements com. Returns a new value computed by merging this value with another, with keys in this value "winning" over the other one. |
| public SimpleConfig | withOnlyPath(String
path to keep pathExpression)Implements com. Clone the config with only the given path (and its children) retained; all sibling paths are removed. |
| public SimpleConfig | withoutPath(String
path expression to remove pathExpression)Implements com. Clone the config with the given path removed. |
| public SimpleConfig | withValue(String
path expression for the value's new location pathExpression, ConfigValue value at the new path v)Implements com. Returns a |
| private Object |