public class Settings extends DefaultStringObjectMap<Settings>
| Constructor and Description |
|---|
Settings() |
Settings(Map<String,Object> map) |
| Modifier and Type | Method and Description |
|---|---|
Settings |
flatten()
flattens the nested structure (JSON fields index/foo/bar/: value) into a flat structure (index.foo.bar: value)
|
Object |
get(Object key) |
void |
merge(Settings other)
Merges some other settings onto this one.
|
static Settings |
parse(String json)
Creates a
Settings object from the given JSON String |
String |
toString() |
clear, containsKey, containsValue, entrySet, equals, forEach, fromJson, getOrDefault, hashCode, isEmpty, keySet, path, put, putAll, remove, size, toJson, valuesclone, finalize, getClass, notify, notifyAll, wait, wait, waitappend, get, getBoolean, getBooleanOrDefault, getBooleanOrDefault, getInt, getIntOrDefault, getIntOrDefault, getLong, getLongOrDefault, getLongOrDefault, getString, getStringOrDefault, getStringOrDefaultcompute, computeIfAbsent, computeIfPresent, merge, putIfAbsent, remove, replace, replace, replaceAllpublic static Settings parse(String json)
Settings object from the given JSON Stringjson - must not be nullpublic String toString()
toString in class DefaultStringObjectMap<Settings>public void merge(Settings other)
other - the other settings. Must not be nullpublic Settings flatten()
Copyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.