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)
ExternalMapremove 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 © 2015 The Apache Software Foundation. All rights reserved.