public class RamMap<T> extends Object implements ExternalMap<T>
| Constructor and Description |
|---|
RamMap(RamStorageService ramStore) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsKey(CharSequence key) |
T |
get(CharSequence key)
Element access.
|
Iterable<Map.Entry<CharSequence,T>> |
getAll(Set<? extends CharSequence> keys) |
T |
put(CharSequence key,
T value)
Put a record into the map.
|
void |
putAll(Map<? extends CharSequence,? extends T> m)
Copies all of the mappings from the specified map to this map (optional
operation).
|
T |
remove(CharSequence key)
Removes the mapping for a key from this map if it is present (optional
operation).
|
@Inject public RamMap(RamStorageService ramStore)
public boolean containsKey(CharSequence key)
containsKey in interface ExternalMap<T>public T get(CharSequence key)
ExternalMapget in interface ExternalMap<T>public T put(CharSequence key, T value)
ExternalMapput in interface ExternalMap<T>public T remove(CharSequence key)
ExternalMapIf this map permits null values, then a return value of null does not necessarily indicate that the map contained no mapping for the key; it's also possible that the map explicitly mapped the key to null.
The map will not contain a mapping for the specified key once the call returns.
remove in interface ExternalMap<T>key - key whose mapping is to be removed from the mappublic void putAll(Map<? extends CharSequence,? extends T> m)
ExternalMapputAll in interface ExternalMap<T>public Iterable<Map.Entry<CharSequence,T>> getAll(Set<? extends CharSequence> keys)
getAll in interface ExternalMap<T>Copyright © 2017 The Apache Software Foundation. All rights reserved.