|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
KeyType
- object type of the keysValueType
- object type of the valuespublic interface StorageService<KeyType,ValueType>
Generic data storage facility for use by services that require some degree of persistence. Implementations will vary in how much persistence they can supply.
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. |
Method Detail |
---|
boolean contains(KeyType key)
key
- the key to check
java.util.Collection<KeyType> getKeys()
ValueType get(KeyType key)
key
- the key
ValueType put(KeyType key, ValueType value)
key
- the keyvalue
- the value
ValueType remove(KeyType key)
key
- the key to the value to remove
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |