Class AggregateTasks.Count
java.lang.Object
ch.tocco.nice2.persist.core.api.exec.tasks2.AggregateTasks.Count
- All Implemented Interfaces:
OptionalTask<Iterable<Entity>,
,Integer> PersistTask<Iterable<Entity>,
,Integer> AggregateTasks.AggregateTask<Integer>
- Enclosing class:
AggregateTasks
public static class AggregateTasks.Count
extends Object
implements OptionalTask<Iterable<Entity>,Integer>, AggregateTasks.AggregateTask<Integer>
Returns the size of the given entity list. Right now it simply
executes
EntityList.size()
but this may change in the
future.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondoRun
(Iterable<Entity> input, CommandContext ctx) static PersistTask
<EntityList, Integer> static AggregateTasks.Count
toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface ch.tocco.nice2.persist.core.api.exec.OptionalTask
run
Methods inherited from interface ch.tocco.nice2.persist.core.api.exec.PersistTask
andThenDo, compose, compose2, composeWhen, discardResult, expand, expand, getDescription, ifElse, orWhen, orWhenNot, passWhen, passWhenNot, skipErrors, unwrap
-
Constructor Details
-
Count
public Count()
-
-
Method Details
-
forEntityList
-
forIterable
-
doRun
- Specified by:
doRun
in interfaceOptionalTask<Iterable<Entity>,
Integer>
-
fromEntityList
- Specified by:
fromEntityList
in interfaceAggregateTasks.AggregateTask<Integer>
-
toString
-