public static final class JavaxJson.Obj extends Object implements JavaxJson.HasValue, JavaxJson.As<javax.json.JsonObject>
JavaxJson.Key instances.| Modifier and Type | Method and Description |
|---|---|
JavaxJson.Obj |
and(JavaxJson.Key... entries)
Append more
JavaxJson.Key instances. |
JavaxJson.Obj |
and(Map<?,?> map)
Append the entries in
map as JavaxJson.Key instances. |
JavaxJson.Arr |
arrKeys()
Transform to an array consisting of the object keys, un-deduplicated.
|
JavaxJson.Arr |
arrVals()
Transform to an array consisting of the object values.
|
javax.json.JsonObject |
get()
Builds a new
JsonObject instance putting all the key value pairs in order. |
JavaxJson.ObjCursor |
key(String key)
Begin another
JavaxJson.Key instance without providing an associated value. |
JavaxJson.Obj |
key(String key,
Object value)
Append another
JavaxJson.Key instance. |
JavaxJson.Value |
toValue() |
public JavaxJson.Obj and(JavaxJson.Key... entries)
JavaxJson.Key instances.entries - 0-many key-value pairs to add to the objpublic JavaxJson.Obj and(Map<?,?> map)
map as JavaxJson.Key instances.map - a collection of key-value pairs?public JavaxJson.ObjCursor key(String key)
JavaxJson.Key instance without providing an associated value. val(Object value) must be
called on the returned cursor to continue building the obj.key - the keypublic JavaxJson.Obj key(String key, Object value)
JavaxJson.Key instance. Essentially shorthand for obj.and(key()) to use fewer parens
where desired.key - the keyvalue - the valuepublic javax.json.JsonObject get()
JsonObject instance putting all the key value pairs in order. Duplicate keys are allowed,
but will overwrite previously put values.get in interface JavaxJson.As<javax.json.JsonObject>public JavaxJson.Arr arrKeys()
public JavaxJson.Arr arrVals()
public JavaxJson.Value toValue()
toValue in interface JavaxJson.HasValueCopyright © 2017–2020. All rights reserved.