public interface IItemCollection extends Iterable<IItemIterable>
Modifier and Type | Method and Description |
---|---|
IItemCollection |
apply(IItemFilter filter)
Creates a new item collection with all items in this collection that pass through the filter.
|
<V,C extends IItemConsumer<C>> |
getAggregate(IAggregator<V,C> aggregator)
Calculates an aggregated value for the items in this collection.
|
boolean |
hasItems() |
forEach, iterator, spliterator
IItemCollection apply(IItemFilter filter)
filter
- the filter to use when selecting items for the new collection<V,C extends IItemConsumer<C>> V getAggregate(IAggregator<V,C> aggregator)
V
- aggregate result value typeC
- Item consumer type. See IAggregator
.boolean hasItems()
true
if the collections contains items, false
otherwiseCopyright © 2020. All rights reserved.