| Modifier and Type | Field and Description |
|---|---|
| private Object[] | |
| pack-priv static final Object | |
| private final Stream |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | allMatch(Predicate<? super T> predicate)
Implements java. Returns whether all elements of this stream match the provided predicate. |
| public boolean | anyMatch(Predicate<? super T> predicate)
Implements java. Returns whether any elements of this stream match the provided predicate. |
| public Optional | avg()
Implements org. Get the average of the elements in this collectable. |
| public <U> Optional | avg(Function<? super T, ? extends U> function)
Implements org. Get the average of the elements in this collectable. |
| public double | avgDouble(ToDoubleFunction<? super T> function)
Implements org. Get the average of the elements in this collectable as |
| public double | avgInt(ToIntFunction<? super T> function)
Implements org. Get the average of the elements in this collectable as |
| public double | avgLong(ToLongFunction<? super T> function)
Implements org. Get the average of the elements in this collectable as |
| public Optional | bitAnd()
Implements org. Collect all bits in this stream into a single value by applying bitwise and. |
| public <U> Optional | bitAnd(Function<? super T, ? extends U> function)
Implements org. Collect all bits in this stream into a single value by applying bitwise and. |
| public int | bitAndInt(ToIntFunction<? super T> function)
Implements org. Collect all bits in this stream into a single value by applying bitwise and. |
| public long | bitAndLong(ToLongFunction<? super T> function)
Implements org. Collect all bits in this stream into a single value by applying bitwise and. |
| public Optional | bitOr()
Implements org. Collect all bits in this stream into a single value by applying bitwise or. |
| public <U> Optional | bitOr(Function<? super T, ? extends U> function)
Implements org. Collect all bits in this stream into a single value by applying bitwise or. |
| public int | bitOrInt(ToIntFunction<? super T> function)
Implements org. Collect all bits in this stream into a single value by applying bitwise or. |
| public long | bitOrLong(ToLongFunction<? super T> function)
Implements org. Collect all bits in this stream into a single value by applying bitwise or. |
| public void | close()
Implements org. Closes this stream, causing all close handlers for this stream pipeline to be called. |
| public <R> R | collect(Supplier<R> supplier, BiConsumer<R, ? super T> accumulator, BiConsumer<R, R> combiner)
Implements java. Performs a mutable reduction operation on the elements of this stream. |
| public <R, A> R | collect(Collector<? super T, A, R> collector)
Implements java. Performs a mutable
reduction operation on the elements of this stream using a
|
| public String | commonPrefix()
Implements org. Get the common prefix of all strings (or to-stringed values) in this stream. |
| public String | commonSuffix()
Implements org. Get the common prefix of all strings (or to-stringed values) in this stream. |
| public long | |
| public long | count(Predicate<? super T> predicate)
Implements org. Count the values in this collectable, for which a predicate evaluates to true. |
| public long | countDistinct()
Implements org. Count the distinct values in this collectable. |
| public long | countDistinct(Predicate<? super T> predicate)
Implements org. Count the distinct values in this collectable, for which a predicate evaluates to true. |
| public <U> long | countDistinctBy(Function<? super T, ? extends U> function)
Implements org. Count the distinct values of a given expression in this collectable. |
| public <U> long | countDistinctBy(Function<? super T, ? extends U> function, Predicate<? super U> predicate)
Implements org. Count the distinct values of a given expression in this collectable, for which a predicate evaluates to true. |
| public Seq | distinct()
Implements org. Returns a stream consisting of the distinct elements (according to
|
| public Seq | filter(Predicate<? super T> predicate)
Implements org. Returns a stream consisting of the elements of this stream that match the given predicate. |
| public Optional | findAny()
Implements java. Returns an |
| public Optional | findFirst()
Implements java. Returns an |
| public <R> Seq | flatMap(Function<? super T, ? extends Stream<? extends R>> mapper)
Implements org. Returns a stream consisting of the results of replacing each element of this stream with the contents of a mapped stream produced by applying the provided mapping function to each element. |
| public DoubleStream | flatMapToDouble(Function<? super T, ? extends DoubleStream> mapper)
Implements org. Returns an |
| public IntStream | flatMapToInt(Function<? super T, ? extends IntStream> mapper)
Implements org. Returns an |
| public LongStream | flatMapToLong(Function<? super T, ? extends LongStream> mapper)
Implements org. Returns an |
| public void | forEach(Consumer<? super T> action)
Overrides default org. Performs an action for each element of this stream. |
| public void | forEachOrdered(Consumer<? super T> action)
Implements java. Performs an action for each element of this stream, in the encounter order of the stream if the stream has a defined encounter order. |
| public String | format()
Implements org. Generate a nicely formatted representation of this stream. |
| public boolean | |
| public Iterator | iterator()
Implements java. Returns an iterator over elements of type |
| public Seq | limit(long maxSize)
Implements org. Returns a stream consisting of the elements of this stream, truncated
to be no longer than |
| public <R> Seq | map(Function<? super T, ? extends R> mapper)
Implements org. Returns a stream consisting of the results of applying the given function to the elements of this stream. |
| public DoubleStream | mapToDouble(ToDoubleFunction<? super T> mapper)
Implements org. Returns a |
| public IntStream | mapToInt(ToIntFunction<? super T> mapper)
Implements org. Returns an |
| public LongStream | mapToLong(ToLongFunction<? super T> mapper)
Implements org. Returns a |
| public Optional | |
| public Optional | max(Comparator<? super T> comparator)
Implements java. Returns the maximum element of this stream according to the provided
|
| public <U extends Comparable | max(Function<? super T, ? extends U> function)
Implements org. Get the maximum value by a function. |
| public <U> Optional | max(Function<? super T, ? extends U> function, Comparator<? super U> comparator)
Implements org. Get the maximum value by a function. |
| public Seq | |
| public Seq | maxAll(Comparator<? super T> comparator)
Implements org. Get the maximum values by a function. |
| public <U extends Comparable | maxAll(Function<? super T, ? extends U> function)
Implements org. Get the maximum values by a function. |
| public <U> Seq | maxAll(Function<? super T, ? extends U> function, Comparator<? super U> comparator)
Implements org. Get the maximum values by a function. |
| public <U extends Comparable | maxAllBy(Function<? super T, ? extends U> function)
Implements org. Get the maximum values by a function. |
| public <U> Seq | maxAllBy(Function<? super T, ? extends U> function, Comparator<? super U> comparator)
Implements org. Get the maximum values by a function. |
| public <U extends Comparable | maxBy(Function<? super T, ? extends U> function)
Implements org. Get the maximum value by a function. |
| public <U> Optional | maxBy(Function<? super T, ? extends U> function, Comparator<? super U> comparator)
Implements org. Get the maximum value by a function. |
| public Optional | |
| public Optional | median(Comparator<? super T> comparator)
Implements org. Get the median value. |
| public <U extends Comparable | medianBy(Function<? super T, ? extends U> function)
Implements org. Get the median value by a function. |
| public <U> Optional | medianBy(Function<? super T, ? extends U> function, Comparator<? super U> comparator)
Implements org. Get the median value by a function. |
| public Optional | |
| public Optional | min(Comparator<? super T> comparator)
Implements java. Returns the minimum element of this stream according to the provided
|
| public <U extends Comparable | min(Function<? super T, ? extends U> function)
Implements org. Get the minimum value by a function. |
| public <U> Optional | min(Function<? super T, ? extends U> function, Comparator<? super U> comparator)
Implements org. Get the minimum value by a function. |
| public Seq | |
| public Seq | minAll(Comparator<? super T> comparator)
Implements org. Get the minimum values by a function. |
| public <U extends Comparable | minAll(Function<? super T, ? extends U> function)
Implements org. Get the minimum values by a function. |
| public <U> Seq | minAll(Function<? super T, ? extends U> function, Comparator<? super U> comparator)
Implements org. Get the minimum values by a function. |
| public <U extends Comparable | minAllBy(Function<? super T, ? extends U> function)
Implements org. Get the minimum values by a function. |
| public <U> Seq | minAllBy(Function<? super T, ? extends U> function, Comparator<? super U> comparator)
Implements org. Get the minimum values by a function. |
| public <U extends Comparable | minBy(Function<? super T, ? extends U> function)
Implements org. Get the minimum value by a function. |
| public <U> Optional | minBy(Function<? super T, ? extends U> function, Comparator<? super U> comparator)
Implements org. Get the minimum value by a function. |
| public Optional | mode()
Implements org. Get the mode, i.e. the value that appears most often in the collectable. |
| public Seq | modeAll()
Implements org. Get the mode, i.e. the values that appear most often in the collectable. |
| public <U> Seq | modeAllBy(Function<? super T, ? extends U> function)
Implements org. Get the mode, i.e. the values that appear most often in the collectable. |
| public <U> Optional | modeBy(Function<? super T, ? extends U> function)
Implements org. Get the mode, i.e. the value that appears most often in the collectable. |
| public boolean | noneMatch(Predicate<? super T> predicate)
Implements java. Returns whether no elements of this stream match the provided predicate. |
| public Seq | onClose(Runnable closeHandler)
Implements org. Returns an equivalent stream with an additional close handler. |
| public Seq | peek(Consumer<? super T> action)
Implements org. Returns a stream consisting of the elements of this stream, additionally performing the provided action on each element as elements are consumed from the resulting stream. |
| public Optional | percentile(double percentile)
Implements org. Get the discrete percentile value. |
| public Optional | percentile(double percentile, Comparator<? super T> comparator)
Implements org. Get the discrete percentile value. |
| public <U extends Comparable | percentileBy(double percentile, Function<? super T, ? extends U> function)
Implements org. Get the discrete percentile value by a function. |
| public <U> Optional | percentileBy(double percentile, Function<? super T, ? extends U> function, Comparator<? super U> comparator)
Implements org. Get the discrete percentile value by a function. |
| public T | reduce(T identity, BinaryOperator<T> accumulator)
Implements java. Performs a reduction on the elements of this stream, using the provided identity value and an associative accumulation function, and returns the reduced value. |
| public Optional | reduce(BinaryOperator<T> accumulator)
Implements java. Performs a reduction on the
elements of this stream, using an
associative accumulation
function, and returns an |
| public <U> U | reduce(U identity, BiFunction<U, ? super T, U> accumulator, BinaryOperator<U> combiner)
Implements java. Performs a reduction on the elements of this stream, using the provided identity, accumulation and combining functions. |
| public Seq | skip(long n)
Implements org. Returns a stream consisting of the remaining elements of this stream
after discarding the first |
| public Seq | sorted()
Implements org. Returns a stream consisting of the elements of this stream, sorted according to natural order. |
| public Seq | sorted(Comparator<? super T> comparator)
Implements org. Returns a stream consisting of the elements of this stream, sorted
according to the provided |
| public Spliterator | spliterator()
Overrides default org. Creates a |
| public Stream | |
| public Optional | |
| public <U> Optional | sum(Function<? super T, ? extends U> function)
Implements org. Get the sum of the elements in this collectable. |
| public double | sumDouble(ToDoubleFunction<? super T> function)
Implements org. Get the sum of the elements in this collectable as |
| public int | sumInt(ToIntFunction<? super T> function)
Implements org. Get the sum of the elements in this collectable as |
| public long | sumLong(ToLongFunction<? super T> function)
Implements org. Get the sum of the elements in this collectable as |
| public Object[] | toArray()
Implements java. Returns an array containing the elements of this stream. |
| public <A> A[] | toArray(IntFunction<A[]> generator)
Implements java. Returns an array containing the elements of this stream, using the
provided |
| public <C extends Collection | toCollection(Supplier<C> factory)
Implements org. Collect the collectable into a |
| public List | toList()
Overrides default java. Implements org. Accumulates the elements of this stream into a |
| public <L extends List | toList(Supplier<L> factory)
Implements org. Collect the collectable into a |
| public <K, V> Map | toMap(Function<? super T, ? extends K> keyMapper, Function<? super T, ? extends V> valueMapper)
Implements org. Collect the collectable into a |
| public <K> Map | toMap(Function<? super T, ? extends K> keyMapper)
Implements org. Collect the collectable into a |
| public Set | |
| public <S extends Set | toSet(Supplier<S> factory)
Implements org. Collect the collectable into a |
| public String | |
| public String | toString(CharSequence delimiter)
Implements org. Consume a stream and concatenate all elements using a separator. |
| public String | toString(CharSequence delimiter, CharSequence prefix, CharSequence suffix)
Implements org. Shortcut for calling |
| public List | toUnmodifiableList()
Implements org. Collect the collectable into an unmodifiable |
| public Set | toUnmodifiableSet()
Implements org. Collect the collectable into an unmodifiable |