|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.core.state.ItemStateMap
public class ItemStateMap
A Map based ItemStateStore implementation.
| Field Summary | |
|---|---|
protected Map<ItemId,ItemState> |
map
the map backing this ItemStateStore implementation |
| Constructor Summary | |
|---|---|
|
ItemStateMap()
Creates a new HashMap-backed ItemStateStore implementation. |
protected |
ItemStateMap(Map<ItemId,ItemState> map)
Protected constructor for specialized subclasses |
| 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. |
void |
dump(PrintStream ps)
Dumps the state of this instance in a human readable format for diagnostic purposes. |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final Map<ItemId,ItemState> map
ItemStateStore implementation
| Constructor Detail |
|---|
public ItemStateMap()
ItemStateStore implementation.
protected ItemStateMap(Map<ItemId,ItemState> map)
map - Map implementation to be used as backing store.| Method Detail |
|---|
public boolean contains(ItemId id)
ItemStateStoretrue if this store contains an ItemState
object with the specified id.
contains in interface ItemStateStoreid - id of ItemState object whose presence should be
tested.
true if this store contains a corresponding entry,
otherwise false.public ItemState get(ItemId id)
ItemStateStoreItemState object with the specified
id if it is present or null if no entry exists
with that id.
get in interface ItemStateStoreid - the id of the ItemState object to be returned.
ItemState object with the specified
id or or null if no entry exists
with that idpublic void put(ItemState state)
ItemStateStoreItemState object in the store
using its ItemId as the key.
put in interface ItemStateStorestate - the ItemState object to storepublic void remove(ItemId id)
ItemStateStoreItemState object with the specified id from
this store if it is present.
remove in interface ItemStateStoreid - the id of the ItemState object which should be
removed from this store.public void clear()
ItemStateStore
clear in interface ItemStateStorepublic boolean isEmpty()
ItemStateStoretrue if this store contains no entries.
isEmpty in interface ItemStateStoretrue if this store contains no entries.public int size()
ItemStateStore
size in interface ItemStateStorepublic Set<ItemId> keySet()
ItemStateStoreItemId
objects) contained in this store.
keySet in interface ItemStateStorepublic Collection<ItemState> values()
ItemStateStoreItemState objects) contained in this store.
values in interface ItemStateStorepublic void dump(PrintStream ps)
Dumpable
dump in interface Dumpableps - stream to dump state to
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||