|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ItemStateStore
ItemStateStore
is similar to a typed Map
:
ItemStateStore
temporarily stores and retrieves
ItemState
instances using their ItemId
s as key.
Method Summary | |
---|---|
void |
clear()
Removes all entries from this store. |
boolean |
contains(ItemId id)
Returns true if this store contains an ItemState
object with the specified id . |
ItemState |
get(ItemId id)
Returns the ItemState object with the specified
id if it is present or null if no entry exists
with that id . |
boolean |
isEmpty()
Returns true if this store contains no entries. |
Set<ItemId> |
keySet()
Returns an unmodifiable set view of the keys (i.e. |
void |
put(ItemState state)
Stores the specified ItemState object in the store
using its ItemId as the key. |
void |
remove(ItemId id)
Removes the ItemState object with the specified id from
this store if it is present. |
int |
size()
Returns the number of entries in this store. |
Collection<ItemState> |
values()
Returns an unmodifiable collection view of the values (i.e. |
Method Detail |
---|
boolean contains(ItemId id)
true
if this store contains an ItemState
object with the specified id
.
id
- id of ItemState
object whose presence should be
tested.
true
if this store contains a corresponding entry,
otherwise false
.ItemState get(ItemId id)
ItemState
object with the specified
id
if it is present or null
if no entry exists
with that id
.
id
- the id of the ItemState
object to be returned.
ItemState
object with the specified
id
or or null
if no entry exists
with that id
void put(ItemState state)
ItemState
object in the store
using its ItemId
as the key.
state
- the ItemState
object to storevoid remove(ItemId id)
ItemState
object with the specified id from
this store if it is present.
id
- the id of the ItemState
object which should be
removed from this store.void clear()
boolean isEmpty()
true
if this store contains no entries.
true
if this store contains no entries.int size()
Set<ItemId> keySet()
ItemId
objects) contained in this store.
Collection<ItemState> values()
ItemState
objects) contained in this store.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |