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, values
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
append, get, getBoolean, getBooleanOrDefault, getBooleanOrDefault, getInt, getIntOrDefault, getIntOrDefault, getLong, getLongOrDefault, getLongOrDefault, getString, getStringOrDefault, getStringOrDefault
compute, computeIfAbsent, computeIfPresent, merge, putIfAbsent, remove, replace, replace, replaceAll
public 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.