|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
KEY
- The type of the key used to access objects in this storeTYPE
- The type of objects this store returnspublic interface IAutoCreatingStore<KEY,TYPE>
A store of objects held against keys. Each object is returned from the store when requested by its key. The object's key is arbitrary. If the object does not exist in the store, it will be created. An object cannot be added to the store by application code.
IObjectBuilder
Method Summary | |
---|---|
void |
clear()
Clear all keys and values from the store. |
boolean |
containsKey(KEY key)
Find out if there is an object held against the key. |
TYPE |
get(KEY key)
Get the object for the key. |
Set<KEY> |
keySet()
Get a copy collection of all the keys in this store. |
TYPE |
remove(KEY key)
Remove the object associated with the key. |
Collection<TYPE> |
values()
Get a copy collection of the values held in this store. |
Methods inherited from interface fulmine.IDestroyable |
---|
destroy |
Method Detail |
---|
TYPE get(KEY key)
Object.equals(Object)
method.
key
- the key representation of the object
TYPE remove(KEY key)
get(Object)
for the same key
may create a new object instance. Keys are matched based on
the Object.equals(Object)
method.
key
- the key identifying the object that will be removed
null
if there was no objectboolean containsKey(KEY key)
Object.equals(Object)
method.
key
- the key to find
true
if there is an object held against the keyCollection<TYPE> values()
void clear()
Set<KEY> keySet()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |