|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--xxl.collections.Container
|
+--xxl.collections.DecoratorContainer
Abstract class following the Decorator design pattern.
| Field Summary | |
protected Container |
container
|
| Fields inherited from class xxl.collections.Container |
FACTORY_METHOD |
| Constructor Summary | |
DecoratorContainer(Container container)
|
|
| Method Summary | |
void |
clear()
Removes all elements from the Container. |
void |
close()
Closes the Container. |
boolean |
contains(java.lang.Object id)
Returns true if the Continaer contains an object for the given Id. |
void |
flush()
Flushes all buffered elements into the container |
java.lang.Object |
get(java.lang.Object id,
boolean unfix)
Returns the Object with the given Id. |
java.util.Iterator |
ids()
Returns a Cursor pointing to the ids of this Container. |
java.lang.Object |
insert(java.lang.Object object,
boolean unfix)
Inserts an Object into this Container. |
void |
remove(java.lang.Object id)
Removes the Object with the given Id. |
int |
size()
Returns the number of elements of this Container. |
void |
unfix(java.lang.Object id)
Unfixes the Object with the given Id. |
void |
update(java.lang.Object id,
java.lang.Object object,
boolean unfix)
Updates an existing (id,*)-entry with (id,object). |
| Methods inherited from class xxl.collections.Container |
flush,
get,
getAll,
getAll,
insert,
insertAll,
insertAll,
objects,
removeAll,
unfixAll,
update,
updateAll,
updateAll,
updateAll,
updateAll |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Field Detail |
protected Container container
| Constructor Detail |
public DecoratorContainer(Container container)
| Method Detail |
public void clear()
public void close()
public boolean contains(java.lang.Object id)
public void flush()
public java.lang.Object get(java.lang.Object id,
boolean unfix)
throws java.util.NoSuchElementException
public java.util.Iterator ids()
public java.lang.Object insert(java.lang.Object object,
boolean unfix)
public void remove(java.lang.Object id)
throws java.util.NoSuchElementException
public int size()
public void unfix(java.lang.Object id)
throws java.util.NoSuchElementException
public void update(java.lang.Object id,
java.lang.Object object,
boolean unfix)
throws java.util.NoSuchElementException
id - the id of the entryobject - the new Object for that entry
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||