Uses of Class
com.landawn.abacus.util.stream.IntStream
-
Uses of IntStream in com.landawn.abacus.util
-
Uses of IntStream in com.landawn.abacus.util.stream
Modifier and TypeMethodDescriptionabstract IntStream
IntStream.append
(int... a) abstract IntStream
IntStream.appendIfEmpty
(int... a) abstract IntStream
ByteStream.asIntStream()
abstract IntStream
CharStream.asIntStream()
Returns aLongStream
consisting of the elements of this stream, converted tolong
.abstract IntStream
ShortStream.asIntStream()
abstract IntStream
IntStream.collapse
(IntBiPredicate collapsible, IntBinaryOperator mergeFunction) Merge series of adjacent elements which satisfy the given predicate using the merger function and return a new stream.abstract IntStream
IntStream.collapse
(IntTriPredicate collapsible, IntBinaryOperator mergeFunction) static IntStream
IntStream.concat
(int[]... a) static IntStream
IntStream.concat
(IntIterator... a) static IntStream
static IntStream
IntStream.concat
(Collection<? extends IntStream> c) static IntStream
static IntStream
IntStream.concatIterators
(Collection<? extends IntIterator> c) static IntStream
Lazy evaluation.static IntStream
IntStream.empty()
abstract IntStream
IntStream.flatmap
(IntFunction<int[]> mapper) abstract IntStream
IntStream.flatMap
(IntFunction<? extends IntStream> mapper) abstract IntStream
Stream.flatmapToInt
(Function<? super T, int[]> mapper) abstract IntStream
ByteStream.flatMapToInt
(ByteFunction<? extends IntStream> mapper) abstract IntStream
CharStream.flatMapToInt
(CharFunction<? extends IntStream> mapper) abstract IntStream
DoubleStream.flatMapToInt
(DoubleFunction<? extends IntStream> mapper) abstract IntStream
FloatStream.flatMapToInt
(FloatFunction<? extends IntStream> mapper) abstract IntStream
LongStream.flatMapToInt
(LongFunction<? extends IntStream> mapper) abstract IntStream
ShortStream.flatMapToInt
(ShortFunction<? extends IntStream> mapper) abstract IntStream
Stream.flatMapToInt
(Function<? super T, ? extends IntStream> mapper) static IntStream
IntStream.flatten
(int[][] a) static IntStream
IntStream.flatten
(int[][][] a) static IntStream
IntStream.flatten
(int[][] a, boolean vertically) static IntStream
IntStream.flatten
(int[][] a, int valueForNone, boolean vertically) static IntStream
IntStream.from
(byte... a) Deprecated.static IntStream
IntStream.from
(byte[] a, int fromIndex, int toIndex) Deprecated.static IntStream
IntStream.from
(char... a) Deprecated.static IntStream
IntStream.from
(char[] a, int fromIndex, int toIndex) Deprecated.static IntStream
IntStream.from
(short... a) Deprecated.static IntStream
IntStream.from
(short[] a, int fromIndex, int toIndex) Deprecated.static IntStream
Lazy evaluation.static IntStream
IntStream.generate
(IntSupplier s) static IntStream
IntStream.iterate
(int init, BooleanSupplier hasNext, IntUnaryOperator f) static IntStream
IntStream.iterate
(int init, IntPredicate hasNext, IntUnaryOperator f) static IntStream
IntStream.iterate
(int init, IntUnaryOperator f) static IntStream
IntStream.iterate
(BooleanSupplier hasNext, IntSupplier next) abstract IntStream
IntStream.map
(IntUnaryOperator mapper) abstract IntStream
IntStream.mapMulti
(IntMapMultiConsumer mapper) abstract IntStream
Stream.mapMultiToInt
(BiConsumer<? super T, ? super IntConsumer> mapper) abstract IntStream
IntStream.mapPartial
(IntFunction<u.OptionalInt> mapper) Note: copied from StreamEx: https://github.com/amaembo/streamexabstract IntStream
IntStream.mapPartialJdk
(IntFunction<OptionalInt> mapper) Note: copied from StreamEx: https://github.com/amaembo/streamexabstract IntStream
Stream.mapPartialToInt
(Function<? super T, u.OptionalInt> mapper) Note: copied from StreamEx: https://github.com/amaembo/streamexabstract IntStream
Stream.mapPartialToIntJdk
(Function<? super T, OptionalInt> mapper) Note: copied from StreamEx: https://github.com/amaembo/streamexabstract IntStream
ByteStream.mapToInt
(ByteToIntFunction mapper) abstract IntStream
CharStream.mapToInt
(CharToIntFunction mapper) Returns aIntStream
consisting of the results of applying the given function to the elements of this stream.abstract IntStream
DoubleStream.mapToInt
(DoubleToIntFunction mapper) abstract IntStream
FloatStream.mapToInt
(FloatToIntFunction mapper) abstract IntStream
LongStream.mapToInt
(LongToIntFunction mapper) abstract IntStream
ShortStream.mapToInt
(ShortToIntFunction mapper) abstract IntStream
Stream.mapToInt
(ToIntFunction<? super T> mapper) static IntStream
IntStream.merge
(int[] a, int[] b, int[] c, IntBiFunction<MergeResult> nextSelector) static IntStream
IntStream.merge
(int[] a, int[] b, IntBiFunction<MergeResult> nextSelector) static IntStream
IntStream.merge
(IntIterator a, IntIterator b, IntBiFunction<MergeResult> nextSelector) static IntStream
IntStream.merge
(IntIterator a, IntIterator b, IntIterator c, IntBiFunction<MergeResult> nextSelector) IntStream.merge
(IntStream b, IntBiFunction<MergeResult> nextSelector) Deprecated.static IntStream
IntStream.merge
(IntStream a, IntStream b, IntBiFunction<MergeResult> nextSelector) static IntStream
IntStream.merge
(IntStream a, IntStream b, IntStream c, IntBiFunction<MergeResult> nextSelector) static IntStream
IntStream.merge
(Collection<? extends IntStream> c, IntBiFunction<MergeResult> nextSelector) abstract IntStream
IntStream.mergeWith
(IntStream b, IntBiFunction<MergeResult> nextSelector) static IntStream
IntStream.of
(int... a) static IntStream
IntStream.of
(int[] a, int startIndex, int endIndex) static IntStream
IntStream.of
(IntIterator iterator) static IntStream
IntStream.of
(u.OptionalInt op) static IntStream
static IntStream
static IntStream
static IntStream
IntStream.of
(Collection<Integer> c) static IntStream
IntStream.of
(OptionalInt op) static IntStream
static IntStream
IntStream.ofCodePoints
(CharSequence str) static <AC> IntStream
IntStream.ofIndices
(AC source, int fromIndex, int increment, int sourceLen, BiFunction<? super AC, Integer, Integer> indexFunc) static <AC> IntStream
IntStream.ofIndices
(AC source, int fromIndex, int increment, BiFunction<? super AC, Integer, Integer> indexFunc) // Forwards: int[] a = {1, 2, 3, 2, 5, 1}; IntStream.ofIndices(a, N::indexOf).println(); // [0, 5] IntStream.ofIndices(a, 1, N::indexOf).println(); // [5] // Backwards IntStream.ofIndices(a, 5, -1, N::lastIndexOf).println(); // [5, 0] IntStream.ofIndices(a, 4, -1, N::lastIndexOf).println(); // [0] // OR // Forwards: int[] source = { 1, 2, 3, 1, 2, 1 }; int[] targetSubArray = { 1, 2 }; IntStream.ofIndices(source, (a, fromIndex) -> Index.ofSubArray(a, fromIndex, targetSubArray, 0, targetSubArray.length).orElse(-1)).println(); // [0, 3] // Backwards IntStream.ofIndices(source, 5, -2, (a, fromIndex) -> Index.ofSubArray(a, fromIndex, targetSubArray, 0, targetSubArray.length).orElse(-1)) .println(); // [3, 0]
static <AC> IntStream
IntStream.ofIndices
(AC source, int fromIndex, BiFunction<? super AC, Integer, Integer> indexFunc) static <AC> IntStream
IntStream.ofIndices
(AC source, BiFunction<? super AC, Integer, Integer> indexFunc) static IntStream
IntStream.ofNullable
(Integer e) static IntStream
IntStream.parallelMerge
(Collection<? extends IntStream> c, IntBiFunction<MergeResult> nextSelector) All the elements from each inputCollection/Iterator/Stream
will be merged into two queues by multiple threads.static IntStream
IntStream.parallelMerge
(Collection<? extends IntStream> c, IntBiFunction<MergeResult> nextSelector, int maxThreadNum) All the elements from each inputCollection/Iterator/Stream
will be merged into two queues by multiple threads.abstract IntStream
IntStream.prepend
(int... a) static IntStream
IntStream.random()
static IntStream
IntStream.random
(int startInclusive, int endExclusive) static IntStream
IntStream.range
(int startInclusive, int endExclusive) static IntStream
IntStream.range
(int startInclusive, int endExclusive, int by) static IntStream
IntStream.rangeClosed
(int startInclusive, int endInclusive) static IntStream
IntStream.rangeClosed
(int startInclusive, int endInclusive, int by) abstract IntStream
IntStream.rangeMap
(IntBiPredicate sameRange, IntBinaryOperator mapper) Note: copied from StreamEx: https://github.com/amaembo/streamex
Returns a stream consisting of results of applying the given function to the ranges created from the source elements.IntStream.rateLimited
(RateLimiter rateLimiter) static IntStream
IntStream.repeat
(int element, long n) abstract IntStream
IntStream.scan
(int init, IntBinaryOperator accumulator) Returns aStream
produced by iterative application of a accumulation function to an initial elementinit
and next element of the current stream.abstract IntStream
IntStream.scan
(int init, IntBinaryOperator accumulator, boolean initIncluded) abstract IntStream
IntStream.scan
(IntBinaryOperator accumulator) Returns aStream
produced by iterative application of a accumulation function to an initial elementinit
and next element of the current stream.IntStream.skipUntil
(IntPredicate predicate) abstract IntStream
IntStream.top
(int n)
This method only runs sequentially, even in parallel stream.abstract IntStream
IntStream.top
(int n, Comparator<? super Integer> comparator)
This method only runs sequentially, even in parallel stream.static IntStream
IntStream.zip
(int[] a, int[] b, int[] c, int valueForNoneA, int valueForNoneB, int valueForNoneC, IntTernaryOperator zipFunction) Zip together the "a", "b" and "c" iterators until all of them runs out of values.static IntStream
IntStream.zip
(int[] a, int[] b, int[] c, IntTernaryOperator zipFunction) Zip together the "a", "b" and "c" arrays until one of them runs out of values.static IntStream
IntStream.zip
(int[] a, int[] b, int valueForNoneA, int valueForNoneB, IntBinaryOperator zipFunction) Zip together the "a" and "b" iterators until all of them runs out of values.static IntStream
IntStream.zip
(int[] a, int[] b, IntBinaryOperator zipFunction) Zip together the "a" and "b" arrays until one of them runs out of values.static IntStream
IntStream.zip
(IntIterator a, IntIterator b, int valueForNoneA, int valueForNoneB, IntBinaryOperator zipFunction) Zip together the "a" and "b" iterators until all of them runs out of values.static IntStream
IntStream.zip
(IntIterator a, IntIterator b, IntIterator c, int valueForNoneA, int valueForNoneB, int valueForNoneC, IntTernaryOperator zipFunction) Zip together the "a", "b" and "c" iterators until all of them runs out of values.static IntStream
IntStream.zip
(IntIterator a, IntIterator b, IntIterator c, IntTernaryOperator zipFunction) Zip together the "a", "b" and "c" iterators until one of them runs out of values.static IntStream
IntStream.zip
(IntIterator a, IntIterator b, IntBinaryOperator zipFunction) Zip together the "a" and "b" iterators until one of them runs out of values.static IntStream
IntStream.zip
(IntStream a, IntStream b, int valueForNoneA, int valueForNoneB, IntBinaryOperator zipFunction) Zip together the "a" and "b" iterators until all of them runs out of values.static IntStream
IntStream.zip
(IntStream a, IntStream b, IntStream c, int valueForNoneA, int valueForNoneB, int valueForNoneC, IntTernaryOperator zipFunction) Zip together the "a", "b" and "c" iterators until all of them runs out of values.static IntStream
IntStream.zip
(IntStream a, IntStream b, IntStream c, IntTernaryOperator zipFunction) Zip together the "a", "b" and "c" streams until one of them runs out of values.static IntStream
IntStream.zip
(IntStream a, IntStream b, IntBinaryOperator zipFunction) Zip together the "a" and "b" streams until one of them runs out of values.static IntStream
IntStream.zip
(Collection<? extends IntStream> c, int[] valuesForNone, IntNFunction<Integer> zipFunction) Zip together the iterators until all of them runs out of values.static IntStream
IntStream.zip
(Collection<? extends IntStream> c, IntNFunction<Integer> zipFunction) Zip together the iterators until one of them runs out of values.abstract IntStream
IntStream.zipWith
(IntStream b, int valueForNoneA, int valueForNoneB, IntBinaryOperator zipFunction) abstract IntStream
IntStream.zipWith
(IntStream b, IntStream c, int valueForNoneA, int valueForNoneB, int valueForNoneC, IntTernaryOperator zipFunction) abstract IntStream
IntStream.zipWith
(IntStream b, IntStream c, IntTernaryOperator zipFunction) abstract IntStream
IntStream.zipWith
(IntStream b, IntBinaryOperator zipFunction) Modifier and TypeMethodDescriptionstatic IntStream
IntStream.merge
(IntStream b, IntBiFunction<MergeResult> nextSelector) Deprecated.replaced bymergeWith(IntStream, IntBiFunction)
static IntStream
IntStream.merge
(IntStream a, IntStream b, IntBiFunction<MergeResult> nextSelector) static IntStream
IntStream.merge
(IntStream a, IntStream b, IntStream c, IntBiFunction<MergeResult> nextSelector) abstract IntStream
IntStream.mergeWith
(IntStream b, IntBiFunction<MergeResult> nextSelector) static IntStream
IntStream.zip
(IntStream a, IntStream b, int valueForNoneA, int valueForNoneB, IntBinaryOperator zipFunction) Zip together the "a" and "b" iterators until all of them runs out of values.static IntStream
IntStream.zip
(IntStream a, IntStream b, IntStream c, int valueForNoneA, int valueForNoneB, int valueForNoneC, IntTernaryOperator zipFunction) Zip together the "a", "b" and "c" iterators until all of them runs out of values.static IntStream
IntStream.zip
(IntStream a, IntStream b, IntStream c, IntTernaryOperator zipFunction) Zip together the "a", "b" and "c" streams until one of them runs out of values.static IntStream
IntStream.zip
(IntStream a, IntStream b, IntBinaryOperator zipFunction) Zip together the "a" and "b" streams until one of them runs out of values.static <R> Stream<R>
Stream.zip
(IntStream a, IntStream b, int valueForNoneA, int valueForNoneB, IntBiFunction<? extends R> zipFunction) Zip together the "a" and "b" iterators until all of them runs out of values.static <R> Stream<R>
Stream.zip
(IntStream a, IntStream b, IntBiFunction<? extends R> zipFunction) Zip together the "a" and "b" streams until one of them runs out of values.static <R> Stream<R>
Stream.zip
(IntStream a, IntStream b, IntStream c, int valueForNoneA, int valueForNoneB, int valueForNoneC, IntTriFunction<? extends R> zipFunction) Zip together the "a", "b" and "c" iterators until all of them runs out of values.static <R> Stream<R>
Stream.zip
(IntStream a, IntStream b, IntStream c, IntTriFunction<? extends R> zipFunction) Zip together the "a", "b" and "c" streams until one of them runs out of values.abstract IntStream
IntStream.zipWith
(IntStream b, int valueForNoneA, int valueForNoneB, IntBinaryOperator zipFunction) abstract IntStream
IntStream.zipWith
(IntStream b, IntStream c, int valueForNoneA, int valueForNoneB, int valueForNoneC, IntTernaryOperator zipFunction) abstract IntStream
IntStream.zipWith
(IntStream b, IntStream c, IntTernaryOperator zipFunction) abstract IntStream
IntStream.zipWith
(IntStream b, IntBinaryOperator zipFunction) Modifier and TypeMethodDescriptionstatic IntStream
IntStream.concat
(Collection<? extends IntStream> c) static IntStream
Lazy evaluation.abstract IntStream
IntStream.flatMap
(IntFunction<? extends IntStream> mapper) abstract IntStream
ByteStream.flatMapToInt
(ByteFunction<? extends IntStream> mapper) abstract IntStream
CharStream.flatMapToInt
(CharFunction<? extends IntStream> mapper) abstract IntStream
DoubleStream.flatMapToInt
(DoubleFunction<? extends IntStream> mapper) abstract IntStream
FloatStream.flatMapToInt
(FloatFunction<? extends IntStream> mapper) abstract IntStream
LongStream.flatMapToInt
(LongFunction<? extends IntStream> mapper) abstract IntStream
ShortStream.flatMapToInt
(ShortFunction<? extends IntStream> mapper) abstract IntStream
Stream.flatMapToInt
(Function<? super T, ? extends IntStream> mapper) static IntStream
IntStream.merge
(Collection<? extends IntStream> c, IntBiFunction<MergeResult> nextSelector) static IntStream
IntStream.parallelMerge
(Collection<? extends IntStream> c, IntBiFunction<MergeResult> nextSelector) All the elements from each inputCollection/Iterator/Stream
will be merged into two queues by multiple threads.static IntStream
IntStream.parallelMerge
(Collection<? extends IntStream> c, IntBiFunction<MergeResult> nextSelector, int maxThreadNum) All the elements from each inputCollection/Iterator/Stream
will be merged into two queues by multiple threads.static IntStream
IntStream.zip
(Collection<? extends IntStream> c, int[] valuesForNone, IntNFunction<Integer> zipFunction) Zip together the iterators until all of them runs out of values.static IntStream
IntStream.zip
(Collection<? extends IntStream> c, IntNFunction<Integer> zipFunction) Zip together the iterators until one of them runs out of values.static <R> Stream<R>
Stream.zip
(Collection<? extends IntStream> c, int[] valuesForNone, IntNFunction<? extends R> zipFunction) Zip together the iterators until all of them runs out of values.static <R> Stream<R>
Stream.zip
(Collection<? extends IntStream> c, IntNFunction<? extends R> zipFunction) Zip together the iterators until one of them runs out of values.
mergeWith(IntStream, IntBiFunction)