ConfigValue representing a list value, as in JSON's
[1,2,3] syntax.
ConfigList implements java.util.List<ConfigValue> so you can
use it like a regular Java list. Or call unwrapped() to unwrap the
list elements into plain Java values.
Like all ConfigValue subtypes, ConfigList is immutable. This
makes it threadsafe and you never have to create "defensive copies." The
mutator methods from java. all throw
java..
The ConfigValue#valueType method on a list returns
ConfigValueType#LIST.
Do not implement ConfigList; it should only be implemented
by the config library. Arbitrary implementations will not work because the
library internals assume a specific concrete implementation. Also, this
interface is likely to grow new methods over time, so third-party
implementations will break.
| Modifier and Type | Method and Description |
|---|---|
| public List | Returns: ajava. containing plain Java objectsRedeclares com. Recursively unwraps the list, returning a list of plain Java values such as Integer or String or whatever is in the list. |
| public ConfigList | withOrigin(ConfigOrigin
the origin set on the returned value origin)Redeclares com. Returns a |
| unwrapped | back to summary |
|---|---|
| public List Redeclares com. Recursively unwraps the list, returning a list of plain Java values such as Integer or String or whatever is in the list.
| |
| withOrigin | back to summary |
|---|---|
| public ConfigList withOrigin(ConfigOrigin origin) Redeclares com. Doc from com. Returns a
| |