public class ExtensibleFieldMap extends AbstractMap<String,Object> implements Map<String,Object>
FieldMap
that can be extended with arbitrary keys. If the key maps
to a key exposed by the field map, the field map is used, otherwise the key
is handled in this implementation. The backing map is a HashMap
with
default initial capacity and load factor.AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
ExtensibleFieldMap()
Constructs a new extensible field map, using this object's field members
as keys.
|
ExtensibleFieldMap(Object object)
Constructs a new extensible field map, using the specified object's field
members as keys.
|
Modifier and Type | Method and Description |
---|---|
void |
clear() |
boolean |
containsKey(Object key) |
Set<Map.Entry<String,Object>> |
entrySet() |
Object |
get(Object key) |
boolean |
isEmpty() |
Object |
put(String key,
Object value) |
Object |
remove(Object key) |
int |
size() |
clone, containsValue, equals, hashCode, keySet, putAll, toString, values
public ExtensibleFieldMap()
ExtensibleFieldMap
.public ExtensibleFieldMap(Object object)
object
- the object whose field members are to be exposed in the map.public boolean containsKey(Object key)
containsKey
in interface Map<String,Object>
containsKey
in class AbstractMap<String,Object>
public void clear()
public int size()
public boolean isEmpty()
Copyright © 2014 ForgeRock AS. All rights reserved.