Modifier and Type | Method and Description |
---|---|
static <E> StreamLikeIterator<E> |
StreamLikeIterator.backedBy(Iterator<E> iterator)
Creates a new
StreamLikeIterator backed by another iterator. |
StreamLikeIterator<E> |
StreamLikeIterator.distinct()
Returns an iterator that returns the distinct elements of this iterator (according to
Object.equals(Object) ). |
StreamLikeIterator<E> |
StreamLikeIterator.dropWhile(Predicate<? super E> predicate)
Returns an iterator that discards elements of this iterator until an element does not match a specific predicate.
|
StreamLikeIterator<E> |
StreamLikeIterator.filter(Predicate<? super E> predicate)
Returns an iterator that filters out elements of this iterator.
|
<R> StreamLikeIterator<R> |
StreamLikeIterator.flatMap(Function<? super E,? extends Iterator<? extends R>> mapper)
Returns an iterator that replaces the elements of this iterator with the elements of a mapped iterator produced by applying a function to each
element.
|
StreamLikeIterator<E> |
StreamLikeIterator.limit(long maxSize)
Returns an iterator that truncates this iterator.
|
<R> StreamLikeIterator<R> |
StreamLikeIterator.map(Function<? super E,? extends R> mapper)
Returns an iterator that applies a function to the elements of this iterator.
|
StreamLikeIterator<E> |
StreamLikeIterator.peek(Consumer<? super E> action)
Returns an iterator that performs an additional action for each element of this iterator.
|
StreamLikeIterator<E> |
StreamLikeIterator.skip(long n)
Returns an iterator that discards a number of elements at the start of this iterator.
|
StreamLikeIterator<E> |
StreamLikeIterator.takeWhile(Predicate<? super E> predicate)
Returns an iterator that discards elements of this iterator once an element matches a specific predicate.
|
Copyright © 2022. All rights reserved.