|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectlumis.util.CollectionExecutor<T>
T
- the type of the collection elements.public class CollectionExecutor<T>
Utility used to process collections in blocks.
Currently each block is fixed in a maximum size of 1000 elements.
Nested Class Summary | |
---|---|
static interface |
CollectionExecutor.IIterationCommand<T>
Interface that is implemented to provide the command for executing a block of a collection. |
Constructor Summary | |
---|---|
CollectionExecutor(java.util.Collection<? extends T> items)
Creates a new executor. |
Method Summary | |
---|---|
void |
execute(CollectionExecutor.IIterationCommand<T> command)
Executes a command on the collection in this executor. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CollectionExecutor(java.util.Collection<? extends T> items)
items
- the collection to be processed in blocks.Method Detail |
---|
public void execute(CollectionExecutor.IIterationCommand<T> command) throws PortalException
CollectionExecutor.IIterationCommand.execute(List)
is called multiple times,
given as argument a sublist of the collection in this executor, in the
same order as the collection's iterator.
command
- the command to be executed.
PortalException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |