T - the generic type of the instances contained in the ListableObjectStorepublic abstract class ObjectStoreToMapAdapter<T extends Serializable> extends Object implements Map<Serializable,T>
This class provides limited functionality from the Map interface. It does not support some methods (see methods javadoc) that can have a big impact in performance due the underlying object store being used.
The object store provided will be access for completing the map operations but the whole lifecycle of the provided object store must be handled by the user.
Operations of this map are not thread safe so the user must synchronize access to this map properly.
| Constructor and Description |
|---|
ObjectStoreToMapAdapter() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
Set<Map.Entry<Serializable,T>> |
entrySet()
This method is not supported for performance reasons
|
T |
get(Object key) |
protected abstract ListableObjectStore<T> |
getObjectStore() |
boolean |
isEmpty() |
Set<Serializable> |
keySet() |
T |
put(Serializable key,
T value) |
void |
putAll(Map<? extends Serializable,? extends T> mapToAdd) |
T |
remove(Object key) |
int |
size() |
Collection<T> |
values()
This method is not supported for performance reasons
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAllprotected abstract ListableObjectStore<T> getObjectStore()
public int size()
size in interface Map<Serializable,T extends Serializable>public boolean isEmpty()
isEmpty in interface Map<Serializable,T extends Serializable>public boolean containsKey(Object key)
containsKey in interface Map<Serializable,T extends Serializable>public boolean containsValue(Object value)
containsValue in interface Map<Serializable,T extends Serializable>public T get(Object key)
get in interface Map<Serializable,T extends Serializable>public T put(Serializable key, T value)
put in interface Map<Serializable,T extends Serializable>public T remove(Object key)
remove in interface Map<Serializable,T extends Serializable>public void putAll(Map<? extends Serializable,? extends T> mapToAdd)
putAll in interface Map<Serializable,T extends Serializable>public void clear()
clear in interface Map<Serializable,T extends Serializable>public Set<Serializable> keySet()
keySet in interface Map<Serializable,T extends Serializable>public Collection<T> values()
values in interface Map<Serializable,T extends Serializable>public Set<Map.Entry<Serializable,T>> entrySet()
entrySet in interface Map<Serializable,T extends Serializable>Copyright © 2003–2017 MuleSoft, Inc.. All rights reserved.