private static class EventCollection.EventTypeEntry extends java.lang.Object implements IItemIterable
| Modifier and Type | Field and Description |
|---|---|
(package private) EventArray |
events |
(package private) java.util.function.Predicate<IItem> |
predicate |
| Constructor and Description |
|---|
EventTypeEntry(EventArray events) |
EventTypeEntry(EventArray events,
java.util.function.Predicate<IItem> predicate) |
| Modifier and Type | Method and Description |
|---|---|
EventCollection.EventTypeEntry |
apply(java.util.function.Predicate<IItem> filter)
Creates a new item iterable with all items in this iterable that pass through the filter.
|
long |
getItemCount() |
IType<IItem> |
getType() |
boolean |
hasItems() |
java.util.Iterator<IItem> |
iterator() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitget, parallelStream, streamfinal EventArray events
final java.util.function.Predicate<IItem> predicate
EventTypeEntry(EventArray events)
EventTypeEntry(EventArray events, java.util.function.Predicate<IItem> predicate)
public IType<IItem> getType()
getType in interface IItemIterablepublic java.util.Iterator<IItem> iterator()
iterator in interface java.lang.Iterable<IItem>public boolean hasItems()
hasItems in interface IItemIterablepublic long getItemCount()
getItemCount in interface IItemIterablepublic EventCollection.EventTypeEntry apply(java.util.function.Predicate<IItem> filter)
IItemIterableapply in interface IItemIterablefilter - the predicate to use when selecting items for the new collection