|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--xxl.collections.Container
A Container is the baseclass for all classes that deal with storing objects.
| Field Summary | |
static Function |
FACTORY_METHOD
A factory method to create a default Container. |
| Constructor Summary | |
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 |
void |
flush(java.lang.Object id)
Flushes the object having the id into the container |
java.lang.Object |
get(java.lang.Object id)
Returns the Object with the given Id. |
abstract java.lang.Object |
get(java.lang.Object id,
boolean unfix)
Returns the Object with the given Id. |
java.util.Iterator |
getAll(java.util.Iterator ids)
Returns an Iterator pointing to the Object of the given Ids. |
java.util.Iterator |
getAll(java.util.Iterator ids,
boolean unfix)
Returns an Iterator pointing to the Object of the given Ids. |
abstract java.util.Iterator |
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. |
abstract java.lang.Object |
insert(java.lang.Object object,
boolean unfix)
Inserts an Object into this Container. |
java.util.Iterator |
insertAll(java.util.Iterator objects)
Inserts all the Object of a given Iterator into this Container. |
java.util.Iterator |
insertAll(java.util.Iterator objects,
boolean unfix)
Inserts all the Object of a given Iterator into this Container. |
Cursor |
objects()
Returns a Cursor pointing to the objects of this Container. |
abstract void |
remove(java.lang.Object id)
Removes the Object with the given Id. |
void |
removeAll(java.util.Iterator ids)
Removes the Objects with the given Ids. |
abstract int |
size()
Returns the number of elements of this Container. |
void |
unfix(java.lang.Object id)
Unfixes the Object with the given Id. |
void |
unfixAll(java.util.Iterator ids)
Unfixes the Objects with the given Ids. |
void |
update(java.lang.Object id,
java.lang.Object object)
Updates an existing (id,*)-entry with (id,object). |
abstract void |
update(java.lang.Object id,
java.lang.Object object,
boolean unfix)
Updates an existing (id,*)-entry with (id,object). |
void |
updateAll(Cursor ids,
Function function)
Updates existing entries. |
void |
updateAll(Cursor ids,
Function function,
boolean unfix)
Updates existing entries. |
void |
updateAll(java.util.Iterator ids,
java.util.Iterator objects)
Updates existing entries. |
void |
updateAll(java.util.Iterator ids,
java.util.Iterator objects,
boolean unfix)
Updates existing entries. |
| 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
| Constructor Detail |
public Container()
| Method Detail |
public void clear()
public void close()
public boolean contains(java.lang.Object id)
public void flush()
public void flush(java.lang.Object id)
public abstract java.lang.Object get(java.lang.Object id,
boolean unfix)
throws java.util.NoSuchElementException
public java.lang.Object get(java.lang.Object id)
throws java.util.NoSuchElementException
public java.util.Iterator getAll(java.util.Iterator ids,
boolean unfix)
ids - an Iterator of Idspublic java.util.Iterator getAll(java.util.Iterator ids)
ids - an Iterator of Idspublic abstract java.util.Iterator ids()
public abstract java.lang.Object insert(java.lang.Object object,
boolean unfix)
public java.lang.Object insert(java.lang.Object object)
public java.util.Iterator insertAll(java.util.Iterator objects,
boolean unfix)
public java.util.Iterator insertAll(java.util.Iterator objects)
public Cursor objects()
public abstract void remove(java.lang.Object id)
throws java.util.NoSuchElementException
public void removeAll(java.util.Iterator ids)
remove(id)for each object of the Iterator.
ids - an Iterator pointing to Idspublic abstract int size()
public void unfix(java.lang.Object id)
throws java.util.NoSuchElementException
public void unfixAll(java.util.Iterator ids)
throws java.util.NoSuchElementException
ids - an Iterator of Ids
public abstract 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
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
public void updateAll(Cursor ids,
Function function,
boolean unfix)
update(id, function.invoke(id))for each id of the Cursor.
ids - a Cursor of Ids
public void updateAll(Cursor ids,
Function function)
update(id, function.invoke(id))for each id of the Cursor.
ids - a Cursor of Ids
public void updateAll(java.util.Iterator ids,
java.util.Iterator objects,
boolean unfix)
ids - a Cursor of Idsobjects - a Cursor of Objects
public void updateAll(java.util.Iterator ids,
java.util.Iterator objects)
ids - a Cursor of Idsobjects - a Cursor of Objects
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||