root().entrySet()
which returns the set of immediate-child keys in the root object and includes null values. Entries contain path expressions meaning there may be quoting and escaping involved. Parse path expressions with {@link ConfigUtil#splitPath}.
Because a Config
is conceptually a single-level map from paths to values, there will not be any {@link ConfigObject} values in theentries (that is, all entries represent leaf nodes). Use {@link ConfigObject} rather than Config
if you want a tree.(OK, this is a slight lie: Config
entries may contain {@link ConfigList} and the lists may contain objects. But no objects aredirectly included as entry values.)
@return set of paths with non-null values, built up by recursing theentire tree of {@link ConfigObject} and creating an entry foreach leaf value.
|
|
|
|
|
|
|
|
|
|
|
|