|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--xxl.collections.Container
|
+--xxl.collections.HashMapContainer
The HashMapContainer is a Container that stores elements in a HashMap. TODO
| Inner classes inherited from class xxl.collections.Container |
Container.Id |
| Field Summary | |
protected int |
counter
|
static Function |
FACTORY_METHOD
A factory method to create a new HashMapContainer. |
protected java.util.HashMap |
map
The HashMap used to store entries. |
| Fields inherited from class xxl.collections.Container |
FACTORY_METHOD |
| Constructor Summary | |
HashMapContainer()
|
|
HashMapContainer(java.util.HashMap map)
|
|
| 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 |
fix(java.lang.Object id)
Fixes the object with the given Id. |
java.lang.Object |
get(java.lang.Object id)
Returns the Object with the given Id. |
Cursor |
ids()
Returns a Cursor pointing to the ids of this Container. |
java.lang.Object |
insert(java.lang.Object object)
Inserts an Object into this Container. |
java.util.Iterator |
iterator()
Returns an Iterator to the elements of the HashMap. |
void |
open()
Opens the Container. |
void |
remove(java.lang.Object id)
Removes the Object with the given Id. |
java.lang.Object |
reserve(java.lang.Object object)
Reserves an Id for a given Object. |
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)
Updates an existing (id,*)-entry with (id,object). |
| Methods inherited from class xxl.collections.Container |
fixAll,
getAll,
id,
insertAll,
objects,
removeAll,
reserveAll,
unfixAll,
updateAll,
updateAll |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Field Detail |
public static final Function FACTORY_METHOD
protected int counter
protected java.util.HashMap map
| Constructor Detail |
public HashMapContainer(java.util.HashMap map)
public HashMapContainer()
| Method Detail |
public void clear()
public void close()
public boolean contains(java.lang.Object id)
public void fix(java.lang.Object id)
throws java.util.NoSuchElementException
public java.lang.Object get(java.lang.Object id)
throws java.util.NoSuchElementException
public Cursor ids()
public java.lang.Object insert(java.lang.Object object)
public java.util.Iterator iterator()
public void open()
public void remove(java.lang.Object id)
throws java.util.NoSuchElementException
public java.lang.Object reserve(java.lang.Object object)
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)
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 | ||||||||