public class JsonValueMap extends Object implements JsonValueWrapper, Map<String,Object>
Constructor and Description |
---|
JsonValueMap(JsonValue jsonValue)
TODO: Description.
|
Modifier and Type | Method and Description |
---|---|
void |
clear()
Removes all of the mappings from this map.
|
boolean |
containsKey(Object key)
Returns
true if this map contains a mapping for the specified key. |
boolean |
containsValue(Object value)
Returns
true if this map maps one or more keys to the specified value. |
Set<Map.Entry<String,Object>> |
entrySet()
Returns a
Set view of the mappings contained in this map. |
boolean |
equals(Object o)
Compares the specified object with this map for equality.
|
Object |
get(Object key)
Returns the value to which the specified key is mapped, or
null if this map
contains no mapping for the key. |
int |
hashCode()
Returns the hash code value for this map.
|
boolean |
isEmpty()
Returns
true if this map contains no key-value mappings. |
Set<String> |
keySet()
Returns a
Set view of the keys contained in this map. |
Object |
put(String key,
Object value)
Associates the specified value with the specified key in this map.
|
void |
putAll(Map<? extends String,? extends Object> m)
Copies all of the mappings from the specified map to this map.
|
Object |
remove(Object key)
Removes the mapping for a key from this map if it is present.
|
int |
size()
Returns the number of key-value mappings in this map.
|
JsonValue |
unwrap()
TODO: Description.
|
Collection<Object> |
values()
Returns a Collection view of the values contained in this map.
|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public JsonValueMap(JsonValue jsonValue)
jsonValue
- TODO.JsonValueException
- if the jsonValue
is not a List.public JsonValue unwrap()
JsonValueWrapper
unwrap
in interface JsonValueWrapper
public int size()
public boolean isEmpty()
true
if this map contains no key-value mappings.public boolean containsKey(Object key)
true
if this map contains a mapping for the specified key.containsKey
in interface Map<String,Object>
key
- key whose presence in this map is to be tested.true
if this map contains a mapping for the specified key.public boolean containsValue(Object value)
true
if this map maps one or more keys to the specified value.containsValue
in interface Map<String,Object>
value
- value whose presence in this map is to be tested.true
if this map maps one or more keys to the specified value.public Object get(Object key)
null
if this map
contains no mapping for the key.public Object put(String key, Object value)
public Object remove(Object key)
public void putAll(Map<? extends String,? extends Object> m)
public void clear()
public Collection<Object> values()
public Set<Map.Entry<String,Object>> entrySet()
Set
view of the mappings contained in this map.public boolean equals(Object o)
Copyright © 2025 Open Identity Platform Community. All rights reserved.