Package org.openjdk.jmc.common.item
Interface IItemIterable
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description IItemIterable
apply(Predicate<IItem> predicate)
Creates a new item iterable with all items in this iterable that pass through the filter.default Stream<IItem>
get()
long
getItemCount()
IType<IItem>
getType()
boolean
hasItems()
default Stream<IItem>
parallelStream()
default Stream<IItem>
stream()
-
Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
-
-
-
Method Detail
-
hasItems
boolean hasItems()
- Returns:
- true if the iterable contains items, false otherwise
-
getItemCount
long getItemCount()
- Returns:
- the number of items in the iterable
-
apply
IItemIterable apply(Predicate<IItem> predicate)
Creates a new item iterable with all items in this iterable that pass through the filter. The iterable may be eagerly or lazily evaluated.- Parameters:
predicate
- the predicate to use when selecting items for the new collection- Returns:
- A new collection of items
-
-