|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opensaml.util.storage.MapBasedStorageService<KeyType,ValueType>
KeyType
- object type of the keysValueType
- object type of the valuespublic class MapBasedStorageService<KeyType,ValueType>
A simple Map
based StorageService
implementation.
Constructor Summary | |
---|---|
MapBasedStorageService()
Constructor. |
Method Summary | |
---|---|
boolean |
contains(KeyType key)
Checks if a given key exists. |
ValueType |
get(KeyType key)
Gets the value stored under a particular key. |
java.util.Collection<KeyType> |
getKeys()
Gets the keys for entries in the storage service. |
ValueType |
put(KeyType key,
ValueType value)
Adds a value, indexed by a key, in to storage. |
ValueType |
remove(KeyType key)
Removes an item from storage. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MapBasedStorageService()
Method Detail |
---|
public java.util.Collection<KeyType> getKeys()
getKeys
in interface StorageService<KeyType,ValueType>
public boolean contains(KeyType key)
contains
in interface StorageService<KeyType,ValueType>
key
- the key to check
public ValueType get(KeyType key)
get
in interface StorageService<KeyType,ValueType>
key
- the key
public ValueType put(KeyType key, ValueType value)
put
in interface StorageService<KeyType,ValueType>
key
- the keyvalue
- the value
public ValueType remove(KeyType key)
remove
in interface StorageService<KeyType,ValueType>
key
- the key to the value to remove
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |