T - E - @SequentialOnly @Immutable public class ExceptionalStream<T,E extends Exception> extends Object implements Closeable, Immutable
BaseStream,
Stream,
IntStream,
LongStream,
DoubleStream,
Collectors,
Fn.Fnn,
Comparators,
ExceptionUtil| Modifier and Type | Class and Description |
|---|---|
static class |
ExceptionalStream.Seq
Deprecated.
Mostly it's for android.
||||||| .merge-left.r2805
|
static class |
ExceptionalStream.StreamE<T,E extends Exception> |
| Modifier and Type | Method and Description |
|---|---|
<TT,EE extends Exception> |
__(Throwables.Function<? super ExceptionalStream<T,E>,ExceptionalStream<TT,EE>,E> transfer) |
<E2 extends Exception> |
acceptIfNotEmpty(Throwables.Consumer<? super ExceptionalStream<T,E>,E2> action) |
<E2 extends Exception> |
allMatch(Throwables.Predicate<? super T,E2> predicate) |
<E2 extends Exception> |
anyMatch(Throwables.Predicate<? super T,E2> predicate) |
ExceptionalStream<T,E> |
append(Collection<? extends T> c) |
ExceptionalStream<T,E> |
append(ExceptionalStream<T,E> s) |
ExceptionalStream<T,E> |
append(T... a) |
ExceptionalStream<T,E> |
appendIfEmpty(Collection<? extends T> c) |
ExceptionalStream<T,E> |
appendIfEmpty(T... a) |
ExceptionalStream<T,E> |
appendIfEmpty(Throwables.Supplier<? extends ExceptionalStream<T,E>,? extends E> supplier)
Append if empty.
|
<R,E2 extends Exception> |
applyIfNotEmpty(Throwables.Function<? super ExceptionalStream<T,E>,R,E2> func) |
<E2 extends Exception> |
averageDouble(Throwables.ToDoubleFunction<? super T,E2> func) |
<E2 extends Exception> |
averageInt(Throwables.ToIntFunction<? super T,E2> func) |
<E2 extends Exception> |
averageLong(Throwables.ToLongFunction<? super T,E2> func) |
void |
close() |
<R,A> ExceptionalStream<R,E> |
collapse(Throwables.BiPredicate<? super T,? super T,? extends E> collapsible,
Collector<? super T,A,R> collector) |
<C extends Collection<T>> |
collapse(Throwables.BiPredicate<? super T,? super T,? extends E> collapsible,
Supplier<? extends C> supplier) |
ExceptionalStream<T,E> |
collapse(Throwables.BiPredicate<? super T,? super T,? extends E> collapsible,
Throwables.BiFunction<? super T,? super T,T,? extends E> mergeFunction)
Merge series of adjacent elements which satisfy the given predicate using
the merger function and return a new stream.
|
<R> ExceptionalStream<R,E> |
collapse(Throwables.BiPredicate<? super T,? super T,? extends E> collapsible,
Throwables.Supplier<R,E> supplier,
Throwables.BiConsumer<? super R,? super T,? extends E> accumulator) |
<U> ExceptionalStream<U,E> |
collapse(Throwables.BiPredicate<? super T,? super T,? extends E> collapsible,
U init,
Throwables.BiFunction<U,? super T,U,? extends E> op) |
<R,A> R |
collect(Collector<? super T,A,R> collector) |
<R,A> R |
collect(Collector<? super T,A,R> collector) |
<R,E2 extends Exception,E3 extends Exception> |
collect(Throwables.Supplier<R,E2> supplier,
Throwables.BiConsumer<? super R,? super T,E3> accumulator) |
<R,RR,E2 extends Exception,E3 extends Exception,E4 extends Exception> |
collect(Throwables.Supplier<R,E2> supplier,
Throwables.BiConsumer<? super R,? super T,E3> accumulator,
Throwables.Function<? super R,? extends RR,E4> finisher) |
<R,RR,A,E2 extends Exception> |
collectAndThen(Collector<? super T,A,R> collector,
Throwables.Function<? super R,? extends RR,E2> func)
Collect and then.
|
<R,RR,A,E2 extends Exception> |
collectAndThen(Collector<? super T,A,R> collector,
Throwables.Function<? super R,? extends RR,E2> func)
Collect and then.
|
static <T,E extends Exception> |
concat(Collection<? extends ExceptionalStream<? extends T,E>> c) |
static <T,E extends Exception> |
concat(Collection<? extends T>... a) |
static <T,E extends Exception> |
concat(ExceptionalStream<? extends T,E>... a) |
static <T,E extends Exception> |
concat(T[]... a) |
boolean |
containsAll(Collection<? extends T> c) |
boolean |
containsAll(T... a) |
boolean |
containsAny(Collection<? extends T> c) |
boolean |
containsAny(T... a) |
long |
count() |
<K> ExceptionalStream<Map.Entry<K,Integer>,E> |
countBy(Throwables.Function<? super T,? extends K,? extends E> keyMapper) |
<U> ExceptionalStream<Pair<T,U>,E> |
crossJoin(Collection<? extends U> b)
The time complexity is O(n * m) : n is the size of this
Stream and m is the size of specified collection b. |
<U,R> ExceptionalStream<R,E> |
crossJoin(Collection<? extends U> b,
Throwables.BiFunction<? super T,? super U,R,? extends E> func)
The time complexity is O(n * m) : n is the size of this
Stream and m is the size of specified collection b. |
<U,R> ExceptionalStream<R,E> |
crossJoin(ExceptionalStream<? extends U,E> b,
Throwables.BiFunction<? super T,? super U,R,? extends E> func)
The time complexity is O(n * m) : n is the size of this
Stream and m is the size of specified collection b. |
ExceptionalStream<T,E> |
defaultIfEmpty(T defaultValue) |
ExceptionalStream<T,E> |
defaultIfEmpty(Throwables.Supplier<? extends ExceptionalStream<T,E>,? extends E> supplier) |
ExceptionalStream<T,E> |
difference(Collection<?> c) |
ExceptionalStream<T,E> |
difference(Function<? super T,?> mapper,
Collection<?> c) |
ExceptionalStream<T,E> |
distinct()
Distinct and filter by occurrences.
|
<K> ExceptionalStream<T,E> |
distinctBy(Throwables.Function<? super T,K,? extends E> keyMapper)
Distinct by the value mapped from
keyMapper . |
<K> ExceptionalStream<T,E> |
distinctBy(Throwables.Function<? super T,K,? extends E> keyMapper,
Throwables.BinaryOperator<T,? extends E> mergeFunction)
Distinct and filter by occurrences.
|
<K> ExceptionalStream<T,E> |
distinctBy(Throwables.Function<? super T,K,? extends E> keyMapper,
Throwables.Predicate<? super Long,? extends E> occurrencesFilter)
Distinct and filter by occurrences.
|
ExceptionalStream<T,E> |
dropWhile(Throwables.Predicate<? super T,? extends E> predicate) |
ExceptionalStream<T,E> |
dropWhile(Throwables.Predicate<? super T,? extends E> predicate,
Throwables.Consumer<? super T,? extends E> actionOnDroppedItem) |
u.Optional<T> |
elementAt(long position) |
static <T,E extends Exception> |
empty() |
ExceptionalStream<T,E> |
filter(Throwables.Predicate<? super T,? extends E> predicate) |
ExceptionalStream<T,E> |
filter(Throwables.Predicate<? super T,? extends E> predicate,
Throwables.Consumer<? super T,? extends E> actionOnDroppedItem) |
ExceptionalStream<T,Exception> |
filterE(Throwables.Predicate<? super T,? extends Exception> predicate) |
<E2 extends Exception> |
findAny(Throwables.Predicate<? super T,E2> predicate)
Same as
findFirst(Throwables.Predicate). |
<E2 extends Exception> |
findFirst(Throwables.Predicate<? super T,E2> predicate) |
<E2 extends Exception> |
findLast(Throwables.Predicate<? super T,E2> predicate)
Consider using:
stream.reversed().findFirst(predicate) for better performance if possible. |
u.Optional<T> |
first() |
<R> ExceptionalStream<R,E> |
flatMap(Throwables.Function<? super T,? extends ExceptionalStream<? extends R,? extends E>,? extends E> mapper) |
<R> ExceptionalStream<R,Exception> |
flatMapE(Throwables.Function<? super T,? extends ExceptionalStream<? extends R,? extends Exception>,? extends Exception> mapper) |
<R> ExceptionalStream<R,E> |
flatMapp(Throwables.Function<? super T,R[],? extends E> mapper) |
ExceptionalStream<Boolean,E> |
flatMapToBoolean(Throwables.Function<? super T,boolean[],? extends E> mapper) |
ExceptionalStream<Byte,E> |
flatMapToByte(Throwables.Function<? super T,byte[],? extends E> mapper) |
ExceptionalStream<Character,E> |
flatMapToChar(Throwables.Function<? super T,char[],? extends E> mapper) |
ExceptionalStream<Double,E> |
flatMapToDouble(Throwables.Function<? super T,double[],? extends E> mapper) |
ExceptionalStream<Float,E> |
flatMapToFloat(Throwables.Function<? super T,float[],? extends E> mapper) |
ExceptionalStream<Integer,E> |
flatMapToInteger(Throwables.Function<? super T,int[],? extends E> mapper) |
ExceptionalStream<Long,E> |
flatMapToLong(Throwables.Function<? super T,long[],? extends E> mapper) |
ExceptionalStream<Short,E> |
flatMapToShort(Throwables.Function<? super T,short[],? extends E> mapper) |
<R> ExceptionalStream<R,E> |
flattMap(Throwables.Function<? super T,? extends Collection<? extends R>,? extends E> mapper) |
<R> ExceptionalStream<R,Exception> |
flattMapE(Throwables.Function<? super T,? extends Collection<? extends R>,? extends Exception> mapper) |
<E2 extends Exception> |
forEach(Throwables.Consumer<? super T,E2> action) |
<E2 extends Exception,E3 extends Exception> |
forEach(Throwables.Consumer<? super T,E2> action,
Throwables.Runnable<E3> onComplete) |
<U,E2 extends Exception,E3 extends Exception> |
forEach(Throwables.Function<? super T,? extends Collection<? extends U>,E2> flatMapper,
Throwables.BiConsumer<? super T,? super U,E3> action) |
<T2,T3,E2 extends Exception,E3 extends Exception,E4 extends Exception> |
forEach(Throwables.Function<? super T,? extends Collection<T2>,E2> flatMapper,
Throwables.Function<? super T2,? extends Collection<T3>,E3> flatMapper2,
Throwables.TriConsumer<? super T,? super T2,? super T3,E4> action) |
<E2 extends Exception> |
forEachIndexed(Throwables.IndexedConsumer<? super T,E2> action) |
<E2 extends Exception> |
forEachPair(Throwables.BiConsumer<? super T,? super T,E2> action)
For each pair.
|
<E2 extends Exception> |
forEachPair(Throwables.BiConsumer<? super T,? super T,E2> action,
int increment)
For each pair.
|
<E2 extends Exception> |
forEachToBreak(MutableBoolean flagToBreak,
Throwables.Consumer<? super T,E2> action) |
<E2 extends Exception> |
forEachToBreak(Throwables.BiConsumer<? super T,MutableBoolean,E2> action) |
<E2 extends Exception> |
forEachTriple(Throwables.TriConsumer<? super T,? super T,? super T,E2> action)
For each triple.
|
<E2 extends Exception> |
forEachTriple(Throwables.TriConsumer<? super T,? super T,? super T,E2> action,
int increment)
For each triple.
|
static <T,E extends Exception> |
from(Throwables.Supplier<ExceptionalStream<? extends T,? extends E>,? extends E> supplier)
Lazy evaluation.
|
<K> ExceptionalStream<Pair<T,T>,E> |
fullJoin(Collection<? extends T> b,
Throwables.Function<? super T,? extends K,? extends E> keyMapper)
The time complexity is O(n + m) : n is the size of this
Stream and m is the size of specified collection b. |
<K,R> ExceptionalStream<R,E> |
fullJoin(Collection<? extends T> b,
Throwables.Function<? super T,? extends K,? extends E> keyMapper,
Throwables.BiFunction<? super T,? super T,R,? extends E> func)
The time complexity is O(n + m) : n is the size of this
Stream and m is the size of specified collection b. |
<U> ExceptionalStream<Pair<T,U>,E> |
fullJoin(Collection<? extends U> b,
Throwables.BiPredicate<? super T,? super U,? extends E> predicate)
Deprecated.
The time complexity is O(n * m). You should try
fullJoin(Collection, Function, Function) first. |
<U,R> ExceptionalStream<R,E> |
fullJoin(Collection<? extends U> b,
Throwables.BiPredicate<? super T,? super U,? extends E> predicate,
Throwables.BiFunction<? super T,? super U,R,? extends E> func)
Deprecated.
The time complexity is O(n * m). You should try
fullJoin(Collection, Function, Function, BiFunction) first. |
<U,K> ExceptionalStream<Pair<T,U>,E> |
fullJoin(Collection<? extends U> b,
Throwables.Function<? super T,? extends K,? extends E> leftKeyMapper,
Throwables.Function<? super U,? extends K,? extends E> rightKeyMapper)
The time complexity is O(n + m) : n is the size of this
Stream and m is the size of specified collection b. |
<U,K,R> ExceptionalStream<R,E> |
fullJoin(Collection<? extends U> b,
Throwables.Function<? super T,? extends K,? extends E> leftKeyMapper,
Throwables.Function<? super U,? extends K,? extends E> rightKeyMapper,
Throwables.BiFunction<? super T,? super U,R,? extends E> func)
The time complexity is O(n + m) : n is the size of this
Stream and m is the size of specified collection b. |
<U,K,R> ExceptionalStream<R,E> |
fullJoin(ExceptionalStream<? extends U,E> b,
Throwables.Function<? super T,? extends K,? extends E> leftKeyMapper,
Throwables.Function<? super U,? extends K,? extends E> rightKeyMapper,
Throwables.BiFunction<? super T,? super U,R,? extends E> func) |
static <T,E extends Exception> |
generate(Throwables.Supplier<T,E> supplier) |
<K> ExceptionalStream<Map.Entry<K,List<T>>,E> |
groupBy(Throwables.Function<? super T,? extends K,? extends E> keyMapper) |
<K,A,D> ExceptionalStream<Map.Entry<K,D>,E> |
groupBy(Throwables.Function<? super T,? extends K,? extends E> keyMapper,
Collector<? super T,A,D> downstream) |
<K,A,D> ExceptionalStream<Map.Entry<K,D>,E> |
groupBy(Throwables.Function<? super T,? extends K,? extends E> keyMapper,
Collector<? super T,A,D> downstream,
Supplier<? extends Map<K,D>> mapFactory) |
<K> ExceptionalStream<Map.Entry<K,List<T>>,E> |
groupBy(Throwables.Function<? super T,? extends K,? extends E> keyMapper,
Supplier<? extends Map<K,List<T>>> mapFactory) |
<K,V> ExceptionalStream<Map.Entry<K,List<V>>,E> |
groupBy(Throwables.Function<? super T,? extends K,? extends E> keyMapper,
Throwables.Function<? super T,? extends V,? extends E> valueMapper) |
<K,V,A,D> ExceptionalStream<Map.Entry<K,D>,E> |
groupBy(Throwables.Function<? super T,? extends K,? extends E> keyMapper,
Throwables.Function<? super T,? extends V,? extends E> valueMapper,
Collector<? super V,A,D> downstream) |
<K,V,A,D> ExceptionalStream<Map.Entry<K,D>,E> |
groupBy(Throwables.Function<? super T,? extends K,? extends E> keyMapper,
Throwables.Function<? super T,? extends V,? extends E> valueMapper,
Collector<? super V,A,D> downstream,
Supplier<? extends Map<K,D>> mapFactory) |
<K,V> ExceptionalStream<Map.Entry<K,List<V>>,E> |
groupBy(Throwables.Function<? super T,? extends K,? extends E> keyMapper,
Throwables.Function<? super T,? extends V,? extends E> valueMapper,
Supplier<? extends Map<K,List<V>>> mapFactory) |
<K,V> ExceptionalStream<Map.Entry<K,V>,E> |
groupBy(Throwables.Function<? super T,? extends K,? extends E> keyMapper,
Throwables.Function<? super T,? extends V,? extends E> valueMapper,
Throwables.BinaryOperator<V,? extends E> mergeFunction) |
<K,V> ExceptionalStream<Map.Entry<K,V>,E> |
groupBy(Throwables.Function<? super T,? extends K,? extends E> keyMapper,
Throwables.Function<? super T,? extends V,? extends E> valueMapper,
Throwables.BinaryOperator<V,? extends E> mergeFunction,
Supplier<? extends Map<K,V>> mapFactory) |
<K> ExceptionalStream<Pair<T,List<T>>,E> |
groupJoin(Collection<? extends T> b,
Throwables.Function<? super T,? extends K,? extends E> keyMapper)
The time complexity is O(n + m) : n is the size of this
Stream and m is the size of specified collection b. |
<K,R> ExceptionalStream<R,E> |
groupJoin(Collection<? extends T> b,
Throwables.Function<? super T,? extends K,? extends E> keyMapper,
Throwables.BiFunction<? super T,? super List<T>,R,? extends E> func)
The time complexity is O(n + m) : n is the size of this
Stream and m is the size of specified collection b. |
<U,K> ExceptionalStream<Pair<T,List<U>>,E> |
groupJoin(Collection<? extends U> b,
Throwables.Function<? super T,? extends K,? extends E> leftKeyMapper,
Throwables.Function<? super U,? extends K,? extends E> rightKeyMapper)
The time complexity is O(n + m) : n is the size of this
Stream and m is the size of specified collection b. |
<U,K,A,D> ExceptionalStream<Pair<T,D>,E> |
groupJoin(Collection<? extends U> b,
Throwables.Function<? super T,? extends K,? extends E> leftKeyMapper,
Throwables.Function<? super U,? extends K,? extends E> rightKeyMapper,
Collector<? super U,A,D> downstream)
The time complexity is O(n + m) : n is the size of this
Stream and m is the size of specified collection b. |
<U,K,A,D,R> |
groupJoin(Collection<? extends U> b,
Throwables.Function<? super T,? extends K,? extends E> leftKeyMapper,
Throwables.Function<? super U,? extends K,? extends E> rightKeyMapper,
Collector<? super U,A,D> downstream,
Throwables.BiFunction<? super T,? super D,R,? extends E> func)
The time complexity is O(n + m) : n is the size of this
Stream and m is the size of specified collection b. |
<U,K,R> ExceptionalStream<R,E> |
groupJoin(Collection<? extends U> b,
Throwables.Function<? super T,? extends K,? extends E> leftKeyMapper,
Throwables.Function<? super U,? extends K,? extends E> rightKeyMapper,
Throwables.BiFunction<? super T,? super List<U>,R,? extends E> func)
The time complexity is O(n + m) : n is the size of this
Stream and m is the size of specified collection b. |
<U,K> ExceptionalStream<Pair<T,U>,E> |
groupJoin(Collection<? extends U> b,
Throwables.Function<? super T,? extends K,? extends E> leftKeyMapper,
Throwables.Function<? super U,? extends K,? extends E> rightKeyMapper,
Throwables.BinaryOperator<U,? extends E> mergeFunction)
The time complexity is O(n + m) : n is the size of this
Stream and m is the size of specified collection b. |
<U,K,R> ExceptionalStream<R,E> |
groupJoin(Collection<? extends U> b,
Throwables.Function<? super T,? extends K,? extends E> leftKeyMapper,
Throwables.Function<? super U,? extends K,? extends E> rightKeyMapper,
Throwables.BinaryOperator<U,? extends E> mergeFunction,
Throwables.BiFunction<? super T,? super U,R,? extends E> func)
The time complexity is O(n + m) : n is the size of this
Stream and m is the size of specified collection b. |
<U,K,A,D,R> |
groupJoin(ExceptionalStream<? extends U,E> b,
Throwables.Function<? super T,? extends K,? extends E> leftKeyMapper,
Throwables.Function<? super U,? extends K,? extends E> rightKeyMapper,
Collector<? super U,A,D> downstream,
Throwables.BiFunction<? super T,? super D,R,? extends E> func)
The time complexity is O(n + m) : n is the size of this
Stream and m is the size of specified collection b. |
<U,K,R> ExceptionalStream<R,E> |
groupJoin(ExceptionalStream<? extends U,E> b,
Throwables.Function<? super T,? extends K,? extends E> leftKeyMapper,
Throwables.Function<? super U,? extends K,? extends E> rightKeyMapper,
Throwables.BiFunction<? super T,? super List<U>,R,? extends E> func)
The time complexity is O(n + m) : n is the size of this
Stream and m is the size of specified collection b. |
<U,K,R> ExceptionalStream<R,E> |
groupJoin(ExceptionalStream<? extends U,E> b,
Throwables.Function<? super T,? extends K,? extends E> leftKeyMapper,
Throwables.Function<? super U,? extends K,? extends E> rightKeyMapper,
Throwables.BinaryOperator<U,? extends E> mergeFunction,
Throwables.BiFunction<? super T,? super U,R,? extends E> func)
The time complexity is O(n + m) : n is the size of this
Stream and m is the size of specified collection b. |
<K,E2 extends Exception> |
groupTo(Throwables.Function<? super T,? extends K,E2> keyMapper) |
<K,M extends Map<K,List<T>>,E2 extends Exception> |
groupTo(Throwables.Function<? super T,? extends K,E2> keyMapper,
Supplier<? extends M> mapFactory) |
<K,V,E2 extends Exception,E3 extends Exception> |
groupTo(Throwables.Function<? super T,? extends K,E2> keyMapper,
Throwables.Function<? super T,? extends V,E3> valueMapper) |
<K,V,M extends Map<K,List<V>>,E2 extends Exception,E3 extends Exception> |
groupTo(Throwables.Function<? super T,? extends K,E2> keyMapper,
Throwables.Function<? super T,? extends V,E3> valueMapper,
Supplier<? extends M> mapFactory) |
boolean |
hasDuplicates() |
ExceptionalStream<Indexed<T>,E> |
indexed() |
<K> ExceptionalStream<Pair<T,T>,E> |
innerJoin(Collection<? extends T> b,
Throwables.Function<? super T,? extends K,? extends E> keyMapper)
The time complexity is O(n + m) : n is the size of this
Stream and m is the size of specified collection b. |
<K,R> ExceptionalStream<R,E> |
innerJoin(Collection<? extends T> b,
Throwables.Function<? super T,? extends K,? extends E> keyMapper,
Throwables.BiFunction<? super T,? super T,R,? extends E> func)
The time complexity is O(n + m) : n is the size of this
Stream and m is the size of specified collection b. |
<U> ExceptionalStream<Pair<T,U>,E> |
innerJoin(Collection<? extends U> b,
Throwables.BiPredicate<? super T,? super U,? extends E> predicate)
Deprecated.
The time complexity is O(n * m). You should try
innerJoin(Collection, Function, Function) first. |
<U,R> ExceptionalStream<R,E> |
innerJoin(Collection<? extends U> b,
Throwables.BiPredicate<? super T,? super U,? extends E> predicate,
Throwables.BiFunction<? super T,? super U,R,? extends E> func)
Deprecated.
The time complexity is O(n * m). You should try
innerJoin(Collection, Function, Function, BiFunction) first. |
<U,K> ExceptionalStream<Pair<T,U>,E> |
innerJoin(Collection<? extends U> b,
Throwables.Function<? super T,? extends K,? extends E> leftKeyMapper,
Throwables.Function<? super U,? extends K,? extends E> rightKeyMapper)
The time complexity is O(n + m) : n is the size of this
Stream and m is the size of specified collection b. |
<U,K,R> ExceptionalStream<R,E> |
innerJoin(Collection<? extends U> b,
Throwables.Function<? super T,? extends K,? extends E> leftKeyMapper,
Throwables.Function<? super U,? extends K,? extends E> rightKeyMapper,
Throwables.BiFunction<? super T,? super U,R,? extends E> func)
The time complexity is O(n + m) : n is the size of this
Stream and m is the size of specified collection b. |
<U,K,R> ExceptionalStream<R,E> |
innerJoin(ExceptionalStream<? extends U,E> b,
Throwables.Function<? super T,? extends K,? extends E> leftKeyMapper,
Throwables.Function<? super U,? extends K,? extends E> rightKeyMapper,
Throwables.BiFunction<? super T,? super U,R,? extends E> func)
The time complexity is O(n + m) : n is the size of this
Stream and m is the size of specified collection b. |
ExceptionalStream<T,E> |
intersection(Collection<?> c) |
ExceptionalStream<T,E> |
intersection(Throwables.Function<? super T,?,E> mapper,
Collection<?> c) |
ExceptionalStream<T,E> |
intersperse(T delimiter) |
static <T,E extends Exception> |
iterate(Throwables.BooleanSupplier<? extends E> hasNext,
Throwables.Supplier<? extends T,E> next) |
static <T,E extends Exception> |
iterate(T init,
Throwables.BooleanSupplier<? extends E> hasNext,
Throwables.UnaryOperator<T,? extends E> f) |
static <T,E extends Exception> |
iterate(T init,
Throwables.Predicate<? super T,? extends E> hasNext,
Throwables.UnaryOperator<T,? extends E> f) |
static <T,E extends Exception> |
iterate(T init,
Throwables.UnaryOperator<T,? extends E> f) |
String |
join(CharSequence delimiter) |
String |
join(CharSequence delimiter,
CharSequence prefix,
CharSequence suffix) |
static <T,E extends Exception> |
just(T e) |
static <T,E extends Exception> |
just(T e,
Class<E> exceptionType) |
u.Optional<T> |
kthLargest(int k,
Comparator<? super T> comparator) |
u.Optional<T> |
last() |
ExceptionalStream<T,E> |
last(int n) |
<K> ExceptionalStream<Pair<T,T>,E> |
leftJoin(Collection<? extends T> b,
Throwables.Function<? super T,? extends K,? extends E> keyMapper)
The time complexity is O(n + m) : n is the size of this
Stream and m is the size of specified collection b. |
<K,R> ExceptionalStream<R,E> |
leftJoin(Collection<? extends T> b,
Throwables.Function<? super T,? extends K,? extends E> keyMapper,
Throwables.BiFunction<? super T,? super T,R,? extends E> func)
The time complexity is O(n + m) : n is the size of this
Stream and m is the size of specified collection b. |
<U> ExceptionalStream<Pair<T,U>,E> |
leftJoin(Collection<? extends U> b,
Throwables.BiPredicate<? super T,? super U,? extends E> predicate)
Deprecated.
The time complexity is O(n * m). You should try
leftJoin(Collection, Function, Function) first. |
<U,R> ExceptionalStream<R,E> |
leftJoin(Collection<? extends U> b,
Throwables.BiPredicate<? super T,? super U,? extends E> predicate,
Throwables.BiFunction<? super T,? super U,R,? extends E> func)
Deprecated.
The time complexity is O(n * m). You should try
leftJoin(Collection, Function, Function, BiFunction) first. |
<U,K> ExceptionalStream<Pair<T,U>,E> |
leftJoin(Collection<? extends U> b,
Throwables.Function<? super T,? extends K,? extends E> leftKeyMapper,
Throwables.Function<? super U,? extends K,? extends E> rightKeyMapper)
The time complexity is O(n + m) : n is the size of this
Stream and m is the size of specified collection b. |
<U,K,R> ExceptionalStream<R,E> |
leftJoin(Collection<? extends U> b,
Throwables.Function<? super T,? extends K,? extends E> leftKeyMapper,
Throwables.Function<? super U,? extends K,? extends E> rightKeyMapper,
Throwables.BiFunction<? super T,? super U,R,? extends E> func)
The time complexity is O(n + m) : n is the size of this
Stream and m is the size of specified collection b. |
<U,K,R> ExceptionalStream<R,E> |
leftJoin(ExceptionalStream<? extends U,E> b,
Throwables.Function<? super T,? extends K,? extends E> leftKeyMapper,
Throwables.Function<? super U,? extends K,? extends E> rightKeyMapper,
Throwables.BiFunction<? super T,? super U,R,? extends E> func)
The time complexity is O(n + m) : n is the size of this
Stream and m is the size of specified collection b. |
ExceptionalStream<T,E> |
limit(long maxSize) |
static ExceptionalStream<String,IOException> |
lines(File file) |
static ExceptionalStream<String,IOException> |
lines(File file,
Charset charset) |
static ExceptionalStream<String,IOException> |
lines(Path path) |
static ExceptionalStream<String,IOException> |
lines(Path path,
Charset charset) |
static ExceptionalStream<String,IOException> |
lines(Reader reader) |
static ExceptionalStream<File,IOException> |
listFiles(File parentPath) |
static ExceptionalStream<File,IOException> |
listFiles(File parentPath,
boolean recursively) |
<U> ExceptionalStream<U,E> |
map(Throwables.Function<? super T,? extends U,? extends E> mapper) |
<U> ExceptionalStream<U,Exception> |
mapE(Throwables.Function<? super T,? extends U,? extends Exception> mapper) |
ExceptionalStream<T,E> |
mapFirst(Throwables.Function<? super T,? extends T,? extends E> mapperForFirst) |
<R> ExceptionalStream<R,E> |
mapFirstOrElse(Throwables.Function<? super T,? extends R,E> mapperForFirst,
Throwables.Function<? super T,? extends R,E> mapperForElse) |
ExceptionalStream<T,E> |
mapLast(Throwables.Function<? super T,? extends T,? extends E> mapperForLast) |
<R> ExceptionalStream<R,E> |
mapLastOrElse(Throwables.Function<? super T,? extends R,E> mapperForLast,
Throwables.Function<? super T,? extends R,E> mapperForElse) |
u.Optional<T> |
max(Comparator<? super T> comparator) |
u.Optional<T> |
maxBy(Function<? super T,? extends Comparable> keyMapper) |
static <T,E extends Exception> |
merge(Collection<? extends T> a,
Collection<? extends T> b,
Collection<? extends T> c,
Throwables.BiFunction<? super T,? super T,MergeResult,E> nextSelector) |
static <T,E extends Exception> |
merge(Collection<? extends T> a,
Collection<? extends T> b,
Throwables.BiFunction<? super T,? super T,MergeResult,E> nextSelector) |
static <T,E extends Exception> |
merge(ExceptionalStream<? extends T,E> a,
ExceptionalStream<? extends T,E> b,
ExceptionalStream<? extends T,E> c,
Throwables.BiFunction<? super T,? super T,MergeResult,E> nextSelector) |
static <T,E extends Exception> |
merge(ExceptionalStream<? extends T,E> a,
ExceptionalStream<? extends T,E> b,
Throwables.BiFunction<? super T,? super T,MergeResult,E> nextSelector) |
static <T,E extends Exception> |
merge(Iterator<? extends T> a,
Iterator<? extends T> b,
Iterator<? extends T> c,
Throwables.BiFunction<? super T,? super T,MergeResult,E> nextSelector) |
static <T,E extends Exception> |
merge(Iterator<? extends T> a,
Iterator<? extends T> b,
Throwables.BiFunction<? super T,? super T,MergeResult,E> nextSelector) |
static <T,E extends Exception> |
merge(T[] a,
T[] b,
T[] c,
Throwables.BiFunction<? super T,? super T,MergeResult,E> nextSelector) |
static <T,E extends Exception> |
merge(T[] a,
T[] b,
Throwables.BiFunction<? super T,? super T,MergeResult,E> nextSelector) |
ExceptionalStream<T,E> |
mergeWith(Collection<? extends T> b,
Throwables.BiFunction<? super T,? super T,MergeResult,E> nextSelector) |
ExceptionalStream<T,E> |
mergeWith(ExceptionalStream<? extends T,E> b,
Throwables.BiFunction<? super T,? super T,MergeResult,E> nextSelector) |
u.Optional<T> |
min(Comparator<? super T> comparator) |
u.Optional<T> |
minBy(Function<? super T,? extends Comparable> keyMapper) |
<E2 extends Exception> |
nMatch(long atLeast,
long atMost,
Throwables.Predicate<? super T,E2> predicate) |
<E2 extends Exception> |
noneMatch(Throwables.Predicate<? super T,E2> predicate) |
static <T,E extends Exception> |
of(Collection<? extends T> c) |
static <T,E extends Exception> |
of(Collection<? extends T> c,
Class<E> exceptionType) |
static <E extends Exception> |
of(double[] a) |
static <E extends Exception> |
of(int[] a) |
static <T,E extends Exception> |
of(Iterable<? extends T> iterable) |
static <T,E extends Exception> |
of(Iterable<? extends T> iterable,
Class<E> exceptionType) |
static <T,E extends Exception> |
of(Iterator<? extends T> iter) |
static <T,E extends Exception> |
of(Iterator<? extends T> iter,
Class<E> exceptionType) |
static <E extends Exception> |
of(long[] a) |
static <K,V,E extends Exception> |
of(Map<K,V> m) |
static <K,V,E extends Exception> |
of(Map<K,V> m,
Class<E> exceptionType) |
static <T,E extends Exception> |
of(Optional<T> op) |
static <T,E extends Exception> |
of(T... a) |
static <T,E extends Exception> |
of(Throwables.Supplier<Collection<? extends T>,? extends E> supplier)
Lazy evaluation.
|
static <T,E extends Exception> |
of(u.Optional<T> op) |
static <K,E extends Exception> |
ofKeys(Map<K,?> map) |
static <K,V,E extends Exception> |
ofKeys(Map<K,V> map,
Throwables.BiPredicate<? super K,? super V,E> filter) |
static <K,V,E extends Exception> |
ofKeys(Map<K,V> map,
Throwables.Predicate<? super V,E> valueFilter) |
static <T,E extends Exception> |
ofNullable(T e)
Returns an empty
Stream if the specified t is null. |
static <V,E extends Exception> |
ofValues(Map<?,V> map) |
static <K,V,E extends Exception> |
ofValues(Map<K,V> map,
Throwables.BiPredicate<? super K,? super V,E> filter) |
static <K,V,E extends Exception> |
ofValues(Map<K,V> map,
Throwables.Predicate<? super K,E> keyFilter) |
ExceptionalStream<T,E> |
onClose(Throwables.Runnable<? extends E> closeHandler)
=======
=======
>>>>>>> .merge-right.r2804
>>>>>>> .merge-right.r2926
|
ExceptionalStream<T,E> |
onEach(Throwables.Consumer<? super T,? extends E> action) |
ExceptionalStream<T,Exception> |
onEachE(Throwables.Consumer<? super T,? extends Exception> action) |
u.Optional<T> |
onlyOne() |
ExceptionalStream<T,E> |
peek(Throwables.Consumer<? super T,? extends E> action) |
ExceptionalStream<T,E> |
peekFirst(Throwables.Consumer<? super T,? extends E> action) |
ExceptionalStream<T,E> |
peekLast(Throwables.Consumer<? super T,? extends E> action) |
u.Optional<Map<Percentage,T>> |
percentiles(Comparator<? super T> comparator) |
long |
persist(Connection conn,
String insertSQL,
int batchSize,
int batchInterval,
Throwables.BiConsumer<? super T,? super PreparedStatement,SQLException> stmtSetter) |
long |
persist(File file) |
long |
persist(PreparedStatement stmt,
int batchSize,
int batchInterval,
Throwables.BiConsumer<? super T,? super PreparedStatement,SQLException> stmtSetter) |
long |
persist(String header,
String tail,
File file) |
long |
persist(Throwables.BiConsumer<? super T,Writer,IOException> writeLine,
String header,
String tail,
Writer writer) |
long |
persist(Throwables.BiConsumer<? super T,Writer,IOException> writeLine,
Writer writer) |
long |
persist(Throwables.Function<? super T,String,IOException> toLine,
File file)
toCSV:
|
long |
persist(Throwables.Function<? super T,String,IOException> toLine,
OutputStream os) |
long |
persist(Throwables.Function<? super T,String,IOException> toLine,
String header,
String tail,
File file) |
long |
persist(Throwables.Function<? super T,String,IOException> toLine,
String header,
String tail,
Writer writer) |
long |
persist(Throwables.Function<? super T,String,IOException> toLine,
Writer writer)
toCSV:
|
ExceptionalStream<T,E> |
prepend(Collection<? extends T> c) |
ExceptionalStream<T,E> |
prepend(ExceptionalStream<T,E> s) |
ExceptionalStream<T,E> |
prepend(T... a) |
void |
println() |
<E2 extends Exception> |
reduce(Throwables.BinaryOperator<T,E2> accumulator) |
<U,E2 extends Exception> |
reduce(U identity,
Throwables.BiFunction<U,? super T,U,E2> accumulator) |
static <T,E extends Exception> |
repeat(T element,
long n) |
ExceptionalStream<T,E> |
reversed() |
ExceptionalStream<T,E> |
reverseSorted() |
<K> ExceptionalStream<Pair<T,T>,E> |
rightJoin(Collection<? extends T> b,
Throwables.Function<? super T,? extends K,? extends E> keyMapper)
The time complexity is O(n + m) : n is the size of this
Stream and m is the size of specified collection b. |
<K,R> ExceptionalStream<R,E> |
rightJoin(Collection<? extends T> b,
Throwables.Function<? super T,? extends K,? extends E> keyMapper,
Throwables.BiFunction<? super T,? super T,R,? extends E> func)
The time complexity is O(n + m) : n is the size of this
Stream and m is the size of specified collection b. |
<U> ExceptionalStream<Pair<T,U>,E> |
rightJoin(Collection<? extends U> b,
Throwables.BiPredicate<? super T,? super U,? extends E> predicate)
Deprecated.
The time complexity is O(n * m). You should try
rightJoin(Collection, Function, Function) first. |
<U,R> ExceptionalStream<R,E> |
rightJoin(Collection<? extends U> b,
Throwables.BiPredicate<? super T,? super U,? extends E> predicate,
Throwables.BiFunction<? super T,? super U,R,? extends E> func)
Deprecated.
The time complexity is O(n * m). You should try
rightJoin(Collection, Function, Function, BiFunction) first. |
<U,K> ExceptionalStream<Pair<T,U>,E> |
rightJoin(Collection<? extends U> b,
Throwables.Function<? super T,? extends K,? extends E> leftKeyMapper,
Throwables.Function<? super U,? extends K,? extends E> rightKeyMapper)
The time complexity is O(n + m) : n is the size of this
Stream and m is the size of specified collection b. |
<U,K,R> ExceptionalStream<R,E> |
rightJoin(Collection<? extends U> b,
Throwables.Function<? super T,? extends K,? extends E> leftKeyMapper,
Throwables.Function<? super U,? extends K,? extends E> rightKeyMapper,
Throwables.BiFunction<? super T,? super U,R,? extends E> func)
The time complexity is O(n + m) : n is the size of this
Stream and m is the size of specified collection b. |
<U,K,R> ExceptionalStream<R,E> |
rightJoin(ExceptionalStream<? extends U,E> b,
Throwables.Function<? super T,? extends K,? extends E> leftKeyMapper,
Throwables.Function<? super U,? extends K,? extends E> rightKeyMapper,
Throwables.BiFunction<? super T,? super U,R,? extends E> func)
The time complexity is O(n + m) : n is the size of this
Stream and m is the size of specified collection b. |
ExceptionalStream<T,E> |
rotated(int distance) |
ExceptionalStream<T,E> |
scan(Throwables.BiFunction<? super T,? super T,T,? extends E> accumulator) |
<U> ExceptionalStream<U,E> |
scan(U init,
Throwables.BiFunction<U,? super T,U,? extends E> accumulator) |
<U> ExceptionalStream<U,E> |
scan(U init,
Throwables.BiFunction<U,? super T,U,? extends E> accumulator,
boolean initIncluded) |
ExceptionalStream<T,E> |
shuffled() |
ExceptionalStream<T,E> |
shuffled(Random rnd) |
ExceptionalStream<T,E> |
skip(long n) |
ExceptionalStream<T,E> |
skipLast(int n) |
ExceptionalStream<T,E> |
skipNull() |
ExceptionalStream<T,E> |
skipUntil(Throwables.Predicate<? super T,? extends E> predicate) |
<A,R> ExceptionalStream<R,E> |
sliding(int windowSize,
int increment,
Collector<? super T,A,R> collector) |
<C extends Collection<T>> |
sliding(int windowSize,
int increment,
IntFunction<? extends C> collectionSupplier) |
<R> ExceptionalStream<R,E> |
slidingMap(Throwables.BiFunction<? super T,? super T,R,? extends E> mapper) |
<R> ExceptionalStream<R,E> |
slidingMap(Throwables.BiFunction<? super T,? super T,R,? extends E> mapper,
int increment) |
<R> ExceptionalStream<R,E> |
slidingMap(Throwables.BiFunction<? super T,? super T,R,? extends E> mapper,
int increment,
boolean ignoreNotPaired) |
<R> ExceptionalStream<R,E> |
slidingMap(Throwables.TriFunction<? super T,? super T,? super T,R,? extends E> mapper) |
<R> ExceptionalStream<R,E> |
slidingMap(Throwables.TriFunction<? super T,? super T,? super T,R,? extends E> mapper,
int increment) |
<R> ExceptionalStream<R,E> |
slidingMap(Throwables.TriFunction<? super T,? super T,? super T,R,? extends E> mapper,
int increment,
boolean ignoreNotPaired) |
ExceptionalStream<List<T>,E> |
slidingToList(int windowSize,
int increment)
Sliding to list.
|
ExceptionalStream<Set<T>,E> |
slidingToSet(int windowSize,
int increment)
Sliding to set.
|
ExceptionalStream<T,E> |
sorted() |
ExceptionalStream<T,E> |
sorted(Comparator<? super T> comparator) |
ExceptionalStream<T,E> |
sortedBy(Function<? super T,? extends Comparable> keyMapper) |
<R,A> ExceptionalStream<R,E> |
split(int chunkSize,
Collector<? super T,A,R> collector) |
<C extends Collection<T>> |
split(int chunkSize,
IntFunction<? extends C> collectionSupplier)
Returns ExceptionalStream of
C with consecutive sub sequences of the elements, each of the same size (the final sequence may be smaller). |
ExceptionalStream<List<T>,E> |
splitToList(int chunkSize)
Returns ExceptionalStream of
List<T> with consecutive sub sequences of the elements, each of the same size (the final sequence may be smaller). |
ExceptionalStream<Set<T>,E> |
splitToSet(int chunkSize)
Returns ExceptionalStream of
Set<T> with consecutive sub sequences of the elements, each of the same size (the final sequence may be smaller). |
<E2 extends Exception> |
sumDouble(Throwables.ToDoubleFunction<? super T,E2> func) |
<E2 extends Exception> |
sumInt(Throwables.ToIntFunction<? super T,E2> func) |
<E2 extends Exception> |
sumLong(Throwables.ToLongFunction<? super T,E2> func) |
ExceptionalStream<T,E> |
symmetricDifference(Collection<T> c) |
ExceptionalStream<T,E> |
takeWhile(Throwables.Predicate<? super T,? extends E> predicate) |
ExceptionalStream<T,E> |
throwIfEmpty(Supplier<? extends E> exceptionSupplier) |
Object[] |
toArray() |
<A> A[] |
toArray(IntFunction<A[]> generator) |
<C extends Collection<T>> |
toCollection(Supplier<? extends C> supplier) |
<R,CC extends Collection<T>,E2 extends Exception> |
toCollectionAndThen(Supplier<? extends CC> supplier,
Throwables.Function<? super CC,R,E2> func) |
DataSet |
toDataSet()
The first row will be used as column names if its type is array or list,
or obtain the column names from first row if its type is entity or map.
|
DataSet |
toDataSet(List<String> columnNames)
If the specified
columnNames is null or empty, the first row will be used as column names if its type is array or list,
or obtain the column names from first row if its type is entity or map. |
ImmutableList<T> |
toImmutableList() |
ImmutableSet<T> |
toImmutableSet() |
List<T> |
toList() |
<R,E2 extends Exception> |
toListAndThen(Throwables.Function<? super List<T>,R,E2> func) |
<K,A,D,E2 extends Exception> |
toMap(Throwables.Function<? super T,? extends K,E2> keyMapper,
Collector<? super T,A,D> downstream) |
<K,A,D,M extends Map<K,D>,E2 extends Exception> |
toMap(Throwables.Function<? super T,? extends K,E2> keyMapper,
Collector<? super T,A,D> downstream,
Supplier<? extends M> mapFactory) |
<K,V,E2 extends Exception,E3 extends Exception> |
toMap(Throwables.Function<? super T,? extends K,E2> keyMapper,
Throwables.Function<? super T,? extends V,E3> valueMapper) |
<K,V,A,D,E2 extends Exception,E3 extends Exception> |
toMap(Throwables.Function<? super T,? extends K,E2> keyMapper,
Throwables.Function<? super T,? extends V,E3> valueMapper,
Collector<? super V,A,D> downstream) |
<K,V,A,D,M extends Map<K,D>,E2 extends Exception,E3 extends Exception> |
toMap(Throwables.Function<? super T,? extends K,E2> keyMapper,
Throwables.Function<? super T,? extends V,E3> valueMapper,
Collector<? super V,A,D> downstream,
Supplier<? extends M> mapFactory) |
<K,V,M extends Map<K,V>,E2 extends Exception,E3 extends Exception> |
toMap(Throwables.Function<? super T,? extends K,E2> keyMapper,
Throwables.Function<? super T,? extends V,E3> valueMapper,
Supplier<? extends M> mapFactory) |
<K,V,E2 extends Exception,E3 extends Exception> |
toMap(Throwables.Function<? super T,? extends K,E2> keyMapper,
Throwables.Function<? super T,? extends V,E3> valueMapper,
Throwables.BinaryOperator<V,? extends E> mergeFunction) |
<K,V,M extends Map<K,V>,E2 extends Exception,E3 extends Exception> |
toMap(Throwables.Function<? super T,? extends K,E2> keyMapper,
Throwables.Function<? super T,? extends V,E3> valueMapper,
Throwables.BinaryOperator<V,? extends E> mergeFunction,
Supplier<? extends M> mapFactory) |
<K,E2 extends Exception> |
toMultimap(Throwables.Function<? super T,? extends K,E2> keyMapper) |
<K,V extends Collection<T>,M extends Multimap<K,T,V>,E2 extends Exception> |
toMultimap(Throwables.Function<? super T,? extends K,E2> keyMapper,
Supplier<? extends M> mapFactory) |
<K,V,E2 extends Exception,E3 extends Exception> |
toMultimap(Throwables.Function<? super T,? extends K,E2> keyMapper,
Throwables.Function<? super T,? extends V,E3> valueMapper) |
<K,V,C extends Collection<V>,M extends Multimap<K,V,C>,E2 extends Exception,E3 extends Exception> |
toMultimap(Throwables.Function<? super T,? extends K,E2> keyMapper,
Throwables.Function<? super T,? extends V,E3> valueMapper,
Supplier<? extends M> mapFactory) |
Multiset<T> |
toMultiset() |
Multiset<T> |
toMultiset(Supplier<? extends Multiset<T>> supplier) |
ExceptionalStream<T,E> |
top(int n) |
ExceptionalStream<T,E> |
top(int n,
Comparator<? super T> comparator) |
Set<T> |
toSet() |
<R,E2 extends Exception> |
toSetAndThen(Throwables.Function<? super Set<T>,R,E2> func) |
static <A,B,T,E extends Exception> |
zip(A[] a,
B[] b,
A valueForNoneA,
B valueForNoneB,
Throwables.BiFunction<? super A,? super B,T,? extends E> zipFunction)
Zip together the "a" and "b" iterators until all of them runs out of values.
|
static <A,B,C,T,E extends Exception> |
zip(A[] a,
B[] b,
C[] c,
A valueForNoneA,
B valueForNoneB,
C valueForNoneC,
Throwables.TriFunction<? super A,? super B,? super C,T,? extends E> zipFunction)
Zip together the "a", "b" and "c" iterators until all of them runs out of values.
|
static <A,B,C,T,E extends Exception> |
zip(A[] a,
B[] b,
C[] c,
Throwables.TriFunction<? super A,? super B,? super C,T,? extends E> zipFunction)
Zip together the "a", "b" and "c" arrays until one of them runs out of values.
|
static <A,B,T,E extends Exception> |
zip(A[] a,
B[] b,
Throwables.BiFunction<? super A,? super B,T,? extends E> zipFunction)
Zip together the "a" and "b" arrays until one of them runs out of values.
|
static <A,B,T,E extends Exception> |
zip(Collection<? extends A> a,
Collection<? extends B> b,
A valueForNoneA,
B valueForNoneB,
Throwables.BiFunction<? super A,? super B,T,? extends E> zipFunction)
Zip together the "a" and "b" iterators until all of them runs out of values.
|
static <A,B,C,T,E extends Exception> |
zip(Collection<? extends A> a,
Collection<? extends B> b,
Collection<? extends C> c,
A valueForNoneA,
B valueForNoneB,
C valueForNoneC,
Throwables.TriFunction<? super A,? super B,? super C,T,? extends E> zipFunction)
Zip together the "a", "b" and "c" iterators until all of them runs out of values.
|
static <A,B,C,T,E extends Exception> |
zip(Collection<? extends A> a,
Collection<? extends B> b,
Collection<? extends C> c,
Throwables.TriFunction<? super A,? super B,? super C,T,? extends E> zipFunction)
Zip together the "a", "b" and "c" arrays until one of them runs out of values.
|
static <A,B,T,E extends Exception> |
zip(Collection<? extends A> a,
Collection<? extends B> b,
Throwables.BiFunction<? super A,? super B,T,? extends E> zipFunction)
Zip together the "a" and "b" arrays until one of them runs out of values.
|
static <A,B,T,E extends Exception> |
zip(ExceptionalStream<? extends A,E> a,
ExceptionalStream<? extends B,E> b,
A valueForNoneA,
B valueForNoneB,
Throwables.BiFunction<? super A,? super B,T,? extends E> zipFunction)
Zip together the "a" and "b" streams until one of them runs out of values.
|
static <A,B,C,T,E extends Exception> |
zip(ExceptionalStream<? extends A,E> a,
ExceptionalStream<? extends B,E> b,
ExceptionalStream<? extends C,E> c,
A valueForNoneA,
B valueForNoneB,
C valueForNoneC,
Throwables.TriFunction<? super A,? super B,? super C,T,? extends E> zipFunction)
Zip together the "a", "b" and "c" streams until one of them runs out of values.
|
static <A,B,C,T,E extends Exception> |
zip(ExceptionalStream<? extends A,E> a,
ExceptionalStream<? extends B,E> b,
ExceptionalStream<? extends C,E> c,
Throwables.TriFunction<? super A,? super B,? super C,T,? extends E> zipFunction)
Zip together the "a", "b" and "c" streams until one of them runs out of values.
|
static <A,B,T,E extends Exception> |
zip(ExceptionalStream<? extends A,E> a,
ExceptionalStream<? extends B,E> b,
Throwables.BiFunction<? super A,? super B,T,? extends E> zipFunction)
Zip together the "a" and "b" streams until one of them runs out of values.
|
static <A,B,T,E extends Exception> |
zip(Iterator<? extends A> a,
Iterator<? extends B> b,
A valueForNoneA,
B valueForNoneB,
Throwables.BiFunction<? super A,? super B,T,? extends E> zipFunction)
Zip together the "a" and "b" iterators until all of them runs out of values.
|
static <A,B,C,T,E extends Exception> |
zip(Iterator<? extends A> a,
Iterator<? extends B> b,
Iterator<? extends C> c,
A valueForNoneA,
B valueForNoneB,
C valueForNoneC,
Throwables.TriFunction<? super A,? super B,? super C,T,? extends E> zipFunction)
Zip together the "a", "b" and "c" iterators until all of them runs out of values.
|
static <A,B,C,T,E extends Exception> |
zip(Iterator<? extends A> a,
Iterator<? extends B> b,
Iterator<? extends C> c,
Throwables.TriFunction<? super A,? super B,? super C,T,? extends E> zipFunction)
Zip together the "a", "b" and "c" iterators until one of them runs out of values.
|
static <A,B,T,E extends Exception> |
zip(Iterator<? extends A> a,
Iterator<? extends B> b,
Throwables.BiFunction<? super A,? super B,T,? extends E> zipFunction)
Zip together the "a" and "b" iterators until one of them runs out of values.
|
<T2,R> ExceptionalStream<R,E> |
zipWith(Collection<T2> b,
Throwables.BiFunction<? super T,? super T2,R,? extends E> zipFunction) |
<T2,R> ExceptionalStream<R,E> |
zipWith(Collection<T2> b,
T valueForNoneA,
T2 valueForNoneB,
Throwables.BiFunction<? super T,? super T2,R,? extends E> zipFunction) |
<T2,T3,R> ExceptionalStream<R,E> |
zipWith(ExceptionalStream<T2,E> b,
ExceptionalStream<T3,E> c,
Throwables.TriFunction<? super T,? super T2,? super T3,R,? extends E> zipFunction) |
<T2,T3,R> ExceptionalStream<R,E> |
zipWith(ExceptionalStream<T2,E> b,
ExceptionalStream<T3,E> c,
T valueForNoneA,
T2 valueForNoneB,
T3 valueForNoneC,
Throwables.TriFunction<? super T,? super T2,? super T3,R,? extends E> zipFunction) |
<T2,R> ExceptionalStream<R,E> |
zipWith(ExceptionalStream<T2,E> b,
Throwables.BiFunction<? super T,? super T2,R,? extends E> zipFunction) |
<T2,R> ExceptionalStream<R,E> |
zipWith(ExceptionalStream<T2,E> b,
T valueForNoneA,
T2 valueForNoneB,
Throwables.BiFunction<? super T,? super T2,R,? extends E> zipFunction) |
public static <T,E extends Exception> ExceptionalStream<T,E> empty()
T - E - public static <T,E extends Exception> ExceptionalStream<T,E> just(T e)
T - E - e - public static <T,E extends Exception> ExceptionalStream<T,E> just(T e, Class<E> exceptionType)
T - E - e - exceptionType - public static <T,E extends Exception> ExceptionalStream<T,E> ofNullable(T e)
Stream if the specified t is null.T - E - e - public static <T,E extends Exception> ExceptionalStream<T,E> of(T... a)
T - E - a - public static <T,E extends Exception> ExceptionalStream<T,E> of(Collection<? extends T> c)
T - E - c - public static <T,E extends Exception> ExceptionalStream<T,E> of(Iterator<? extends T> iter)
T - E - iter - public static <T,E extends Exception> ExceptionalStream<T,E> of(Iterable<? extends T> iterable)
T - E - iterable - public static <K,V,E extends Exception> ExceptionalStream<Map.Entry<K,V>,E> of(Map<K,V> m)
K - the key typeV - the value typeE - m - public static <T,E extends Exception> ExceptionalStream<T,E> of(Collection<? extends T> c, Class<E> exceptionType)
T - E - c - exceptionType - public static <T,E extends Exception> ExceptionalStream<T,E> of(Iterator<? extends T> iter, Class<E> exceptionType)
T - E - iter - exceptionType - public static <T,E extends Exception> ExceptionalStream<T,E> of(Iterable<? extends T> iterable, Class<E> exceptionType)
T - E - iterable - exceptionType - public static <K,V,E extends Exception> ExceptionalStream<Map.Entry<K,V>,E> of(Map<K,V> m, Class<E> exceptionType)
K - the key typeV - the value typeE - m - exceptionType - public static <E extends Exception> ExceptionalStream<Integer,E> of(int[] a)
E - a - public static <E extends Exception> ExceptionalStream<Long,E> of(long[] a)
E - a - public static <E extends Exception> ExceptionalStream<Double,E> of(double[] a)
E - a - public static <T,E extends Exception> ExceptionalStream<T,E> of(u.Optional<T> op)
public static <T,E extends Exception> ExceptionalStream<T,E> of(Optional<T> op)
@Beta public static <T,E extends Exception> ExceptionalStream<T,E> of(Throwables.Supplier<Collection<? extends T>,? extends E> supplier)
ExceptionalStream.just(supplier).flattMap(it -> it.get()).supplier - public static <T,E extends Exception> ExceptionalStream<T,E> from(Throwables.Supplier<ExceptionalStream<? extends T,? extends E>,? extends E> supplier)
ExceptionalStream.just(supplier).flatMap(it -> it.get()).supplier - public static <K,E extends Exception> ExceptionalStream<K,E> ofKeys(Map<K,?> map)
public static <K,V,E extends Exception> ExceptionalStream<K,E> ofKeys(Map<K,V> map, Throwables.Predicate<? super V,E> valueFilter)
public static <K,V,E extends Exception> ExceptionalStream<K,E> ofKeys(Map<K,V> map, Throwables.BiPredicate<? super K,? super V,E> filter)
public static <V,E extends Exception> ExceptionalStream<V,E> ofValues(Map<?,V> map)
public static <K,V,E extends Exception> ExceptionalStream<V,E> ofValues(Map<K,V> map, Throwables.Predicate<? super K,E> keyFilter)
public static <K,V,E extends Exception> ExceptionalStream<V,E> ofValues(Map<K,V> map, Throwables.BiPredicate<? super K,? super V,E> filter)
public static <T,E extends Exception> ExceptionalStream<T,E> iterate(Throwables.BooleanSupplier<? extends E> hasNext, Throwables.Supplier<? extends T,E> next)
T - E - hasNext - next - public static <T,E extends Exception> ExceptionalStream<T,E> iterate(T init, Throwables.BooleanSupplier<? extends E> hasNext, Throwables.UnaryOperator<T,? extends E> f)
T - E - init - hasNext - f - public static <T,E extends Exception> ExceptionalStream<T,E> iterate(T init, Throwables.Predicate<? super T,? extends E> hasNext, Throwables.UnaryOperator<T,? extends E> f)
T - E - init - hasNext - f - public static <T,E extends Exception> ExceptionalStream<T,E> iterate(T init, Throwables.UnaryOperator<T,? extends E> f)
T - E - init - f - public static <T,E extends Exception> ExceptionalStream<T,E> generate(Throwables.Supplier<T,E> supplier)
public static <T,E extends Exception> ExceptionalStream<T,E> repeat(T element, long n)
public static ExceptionalStream<String,IOException> lines(File file)
file - public static ExceptionalStream<String,IOException> lines(File file, Charset charset)
file - charset - public static ExceptionalStream<String,IOException> lines(Path path)
path - public static ExceptionalStream<String,IOException> lines(Path path, Charset charset)
path - charset - public static ExceptionalStream<String,IOException> lines(Reader reader)
reader - public static ExceptionalStream<File,IOException> listFiles(File parentPath)
public static ExceptionalStream<File,IOException> listFiles(File parentPath, boolean recursively)
@SafeVarargs public static <T,E extends Exception> ExceptionalStream<T,E> concat(T[]... a)
@SafeVarargs public static <T,E extends Exception> ExceptionalStream<T,E> concat(Collection<? extends T>... a)
@SafeVarargs public static <T,E extends Exception> ExceptionalStream<T,E> concat(ExceptionalStream<? extends T,E>... a)
T - E - a - public static <T,E extends Exception> ExceptionalStream<T,E> concat(Collection<? extends ExceptionalStream<? extends T,E>> c)
T - E - c - public static <A,B,T,E extends Exception> ExceptionalStream<T,E> zip(A[] a, B[] b, Throwables.BiFunction<? super A,? super B,T,? extends E> zipFunction)
a - b - public static <A,B,C,T,E extends Exception> ExceptionalStream<T,E> zip(A[] a, B[] b, C[] c, Throwables.TriFunction<? super A,? super B,? super C,T,? extends E> zipFunction)
a - b - public static <A,B,T,E extends Exception> ExceptionalStream<T,E> zip(Collection<? extends A> a, Collection<? extends B> b, Throwables.BiFunction<? super A,? super B,T,? extends E> zipFunction)
a - b - public static <A,B,C,T,E extends Exception> ExceptionalStream<T,E> zip(Collection<? extends A> a, Collection<? extends B> b, Collection<? extends C> c, Throwables.TriFunction<? super A,? super B,? super C,T,? extends E> zipFunction)
a - b - public static <A,B,T,E extends Exception> ExceptionalStream<T,E> zip(Iterator<? extends A> a, Iterator<? extends B> b, Throwables.BiFunction<? super A,? super B,T,? extends E> zipFunction)
a - b - public static <A,B,C,T,E extends Exception> ExceptionalStream<T,E> zip(Iterator<? extends A> a, Iterator<? extends B> b, Iterator<? extends C> c, Throwables.TriFunction<? super A,? super B,? super C,T,? extends E> zipFunction)
a - b - public static <A,B,T,E extends Exception> ExceptionalStream<T,E> zip(ExceptionalStream<? extends A,E> a, ExceptionalStream<? extends B,E> b, Throwables.BiFunction<? super A,? super B,T,? extends E> zipFunction)
a - b - public static <A,B,C,T,E extends Exception> ExceptionalStream<T,E> zip(ExceptionalStream<? extends A,E> a, ExceptionalStream<? extends B,E> b, ExceptionalStream<? extends C,E> c, Throwables.TriFunction<? super A,? super B,? super C,T,? extends E> zipFunction)
a - b - c - public static <A,B,T,E extends Exception> ExceptionalStream<T,E> zip(A[] a, B[] b, A valueForNoneA, B valueForNoneB, Throwables.BiFunction<? super A,? super B,T,? extends E> zipFunction)
a - b - valueForNoneA - value to fill if "a" runs out of values first.valueForNoneB - value to fill if "b" runs out of values first.zipFunction - public static <A,B,C,T,E extends Exception> ExceptionalStream<T,E> zip(A[] a, B[] b, C[] c, A valueForNoneA, B valueForNoneB, C valueForNoneC, Throwables.TriFunction<? super A,? super B,? super C,T,? extends E> zipFunction)
a - b - c - valueForNoneA - value to fill if "a" runs out of values.valueForNoneB - value to fill if "b" runs out of values.valueForNoneC - value to fill if "c" runs out of values.zipFunction - public static <A,B,T,E extends Exception> ExceptionalStream<T,E> zip(Collection<? extends A> a, Collection<? extends B> b, A valueForNoneA, B valueForNoneB, Throwables.BiFunction<? super A,? super B,T,? extends E> zipFunction)
a - b - valueForNoneA - value to fill if "a" runs out of values first.valueForNoneB - value to fill if "b" runs out of values first.zipFunction - public static <A,B,C,T,E extends Exception> ExceptionalStream<T,E> zip(Collection<? extends A> a, Collection<? extends B> b, Collection<? extends C> c, A valueForNoneA, B valueForNoneB, C valueForNoneC, Throwables.TriFunction<? super A,? super B,? super C,T,? extends E> zipFunction)
a - b - c - valueForNoneA - value to fill if "a" runs out of values.valueForNoneB - value to fill if "b" runs out of values.valueForNoneC - value to fill if "c" runs out of values.zipFunction - public static <A,B,T,E extends Exception> ExceptionalStream<T,E> zip(Iterator<? extends A> a, Iterator<? extends B> b, A valueForNoneA, B valueForNoneB, Throwables.BiFunction<? super A,? super B,T,? extends E> zipFunction)
a - b - valueForNoneA - value to fill if "a" runs out of values first.valueForNoneB - value to fill if "b" runs out of values first.zipFunction - public static <A,B,C,T,E extends Exception> ExceptionalStream<T,E> zip(Iterator<? extends A> a, Iterator<? extends B> b, Iterator<? extends C> c, A valueForNoneA, B valueForNoneB, C valueForNoneC, Throwables.TriFunction<? super A,? super B,? super C,T,? extends E> zipFunction)
a - b - c - valueForNoneA - value to fill if "a" runs out of values.valueForNoneB - value to fill if "b" runs out of values.valueForNoneC - value to fill if "c" runs out of values.zipFunction - public static <A,B,T,E extends Exception> ExceptionalStream<T,E> zip(ExceptionalStream<? extends A,E> a, ExceptionalStream<? extends B,E> b, A valueForNoneA, B valueForNoneB, Throwables.BiFunction<? super A,? super B,T,? extends E> zipFunction)
a - b - public static <A,B,C,T,E extends Exception> ExceptionalStream<T,E> zip(ExceptionalStream<? extends A,E> a, ExceptionalStream<? extends B,E> b, ExceptionalStream<? extends C,E> c, A valueForNoneA, B valueForNoneB, C valueForNoneC, Throwables.TriFunction<? super A,? super B,? super C,T,? extends E> zipFunction)
a - b - c - public static <T,E extends Exception> ExceptionalStream<T,E> merge(T[] a, T[] b, Throwables.BiFunction<? super T,? super T,MergeResult,E> nextSelector)
a - b - nextSelector - first parameter is selected if Nth.FIRST is returned, otherwise the second parameter is selected.public static <T,E extends Exception> ExceptionalStream<T,E> merge(T[] a, T[] b, T[] c, Throwables.BiFunction<? super T,? super T,MergeResult,E> nextSelector)
a - b - c - nextSelector - first parameter is selected if Nth.FIRST is returned, otherwise the second parameter is selected.public static <T,E extends Exception> ExceptionalStream<T,E> merge(Collection<? extends T> a, Collection<? extends T> b, Throwables.BiFunction<? super T,? super T,MergeResult,E> nextSelector)
a - b - nextSelector - first parameter is selected if Nth.FIRST is returned, otherwise the second parameter is selected.public static <T,E extends Exception> ExceptionalStream<T,E> merge(Collection<? extends T> a, Collection<? extends T> b, Collection<? extends T> c, Throwables.BiFunction<? super T,? super T,MergeResult,E> nextSelector)
a - b - c - nextSelector - first parameter is selected if Nth.FIRST is returned, otherwise the second parameter is selected.public static <T,E extends Exception> ExceptionalStream<T,E> merge(Iterator<? extends T> a, Iterator<? extends T> b, Throwables.BiFunction<? super T,? super T,MergeResult,E> nextSelector)
a - b - nextSelector - first parameter is selected if Nth.FIRST is returned, otherwise the second parameter is selected.public static <T,E extends Exception> ExceptionalStream<T,E> merge(Iterator<? extends T> a, Iterator<? extends T> b, Iterator<? extends T> c, Throwables.BiFunction<? super T,? super T,MergeResult,E> nextSelector)
a - b - c - nextSelector - first parameter is selected if Nth.FIRST is returned, otherwise the second parameter is selected.public static <T,E extends Exception> ExceptionalStream<T,E> merge(ExceptionalStream<? extends T,E> a, ExceptionalStream<? extends T,E> b, Throwables.BiFunction<? super T,? super T,MergeResult,E> nextSelector)
a - b - nextSelector - first parameter is selected if Nth.FIRST is returned, otherwise the second parameter is selected.public static <T,E extends Exception> ExceptionalStream<T,E> merge(ExceptionalStream<? extends T,E> a, ExceptionalStream<? extends T,E> b, ExceptionalStream<? extends T,E> c, Throwables.BiFunction<? super T,? super T,MergeResult,E> nextSelector)
@IntermediateOp public ExceptionalStream<T,E> filter(Throwables.Predicate<? super T,? extends E> predicate)
predicate - @IntermediateOp public ExceptionalStream<T,E> filter(Throwables.Predicate<? super T,? extends E> predicate, Throwables.Consumer<? super T,? extends E> actionOnDroppedItem)
predicate - actionOnDroppedItem - @IntermediateOp public ExceptionalStream<T,E> takeWhile(Throwables.Predicate<? super T,? extends E> predicate)
predicate - @IntermediateOp public ExceptionalStream<T,E> dropWhile(Throwables.Predicate<? super T,? extends E> predicate)
predicate - @IntermediateOp public ExceptionalStream<T,E> dropWhile(Throwables.Predicate<? super T,? extends E> predicate, Throwables.Consumer<? super T,? extends E> actionOnDroppedItem)
predicate - actionOnDroppedItem - @IntermediateOp @Beta public ExceptionalStream<T,E> skipUntil(Throwables.Predicate<? super T,? extends E> predicate)
predicate - @IntermediateOp public ExceptionalStream<T,E> distinct()
@IntermediateOp public <K> ExceptionalStream<T,E> distinctBy(Throwables.Function<? super T,K,? extends E> keyMapper)
keyMapper .keyMapper - don't change value of the input parameter.@IntermediateOp @TerminalOpTriggered public <K> ExceptionalStream<T,E> distinctBy(Throwables.Function<? super T,K,? extends E> keyMapper, Throwables.Predicate<? super Long,? extends E> occurrencesFilter)
keyMapper - occurrencesFilter - #groupBy(Function, Collector)@IntermediateOp @TerminalOpTriggered public <K> ExceptionalStream<T,E> distinctBy(Throwables.Function<? super T,K,? extends E> keyMapper, Throwables.BinaryOperator<T,? extends E> mergeFunction)
keyMapper - occurrencesFilter - #groupBy(Function, Function, BinaryOperator)@IntermediateOp public <U> ExceptionalStream<U,E> map(Throwables.Function<? super T,? extends U,? extends E> mapper)
U - mapper - @IntermediateOp public ExceptionalStream<T,E> mapFirst(Throwables.Function<? super T,? extends T,? extends E> mapperForFirst)
@IntermediateOp public <R> ExceptionalStream<R,E> mapFirstOrElse(Throwables.Function<? super T,? extends R,E> mapperForFirst, Throwables.Function<? super T,? extends R,E> mapperForElse)
@IntermediateOp public ExceptionalStream<T,E> mapLast(Throwables.Function<? super T,? extends T,? extends E> mapperForLast)
@IntermediateOp public <R> ExceptionalStream<R,E> mapLastOrElse(Throwables.Function<? super T,? extends R,E> mapperForLast, Throwables.Function<? super T,? extends R,E> mapperForElse)
@IntermediateOp public <R> ExceptionalStream<R,E> flatMap(Throwables.Function<? super T,? extends ExceptionalStream<? extends R,? extends E>,? extends E> mapper)
R - mapper - @IntermediateOp public <R> ExceptionalStream<R,E> flattMap(Throwables.Function<? super T,? extends Collection<? extends R>,? extends E> mapper)
R - mapper - @IntermediateOp public <R> ExceptionalStream<R,E> flatMapp(Throwables.Function<? super T,R[],? extends E> mapper)
R - mapper - @Beta @IntermediateOp public ExceptionalStream<Boolean,E> flatMapToBoolean(Throwables.Function<? super T,boolean[],? extends E> mapper)
R - mapper - @Beta @IntermediateOp public ExceptionalStream<Character,E> flatMapToChar(Throwables.Function<? super T,char[],? extends E> mapper)
R - mapper - @Beta @IntermediateOp public ExceptionalStream<Byte,E> flatMapToByte(Throwables.Function<? super T,byte[],? extends E> mapper)
R - mapper - @Beta @IntermediateOp public ExceptionalStream<Short,E> flatMapToShort(Throwables.Function<? super T,short[],? extends E> mapper)
R - mapper - @Beta @IntermediateOp public ExceptionalStream<Integer,E> flatMapToInteger(Throwables.Function<? super T,int[],? extends E> mapper)
R - mapper - @Beta @IntermediateOp public ExceptionalStream<Long,E> flatMapToLong(Throwables.Function<? super T,long[],? extends E> mapper)
R - mapper - @Beta @IntermediateOp public ExceptionalStream<Float,E> flatMapToFloat(Throwables.Function<? super T,float[],? extends E> mapper)
R - mapper - @Beta @IntermediateOp public ExceptionalStream<Double,E> flatMapToDouble(Throwables.Function<? super T,double[],? extends E> mapper)
R - mapper - @IntermediateOp public <R> ExceptionalStream<R,E> slidingMap(Throwables.BiFunction<? super T,? super T,R,? extends E> mapper)
R - mapper - @IntermediateOp public <R> ExceptionalStream<R,E> slidingMap(Throwables.BiFunction<? super T,? super T,R,? extends E> mapper, int increment)
R - mapper - increment - @IntermediateOp public <R> ExceptionalStream<R,E> slidingMap(Throwables.BiFunction<? super T,? super T,R,? extends E> mapper, int increment, boolean ignoreNotPaired)
R - mapper - increment - ignoreNotPaired - @IntermediateOp public <R> ExceptionalStream<R,E> slidingMap(Throwables.TriFunction<? super T,? super T,? super T,R,? extends E> mapper)
R - mapper - @IntermediateOp public <R> ExceptionalStream<R,E> slidingMap(Throwables.TriFunction<? super T,? super T,? super T,R,? extends E> mapper, int increment)
R - mapper - increment - @IntermediateOp public <R> ExceptionalStream<R,E> slidingMap(Throwables.TriFunction<? super T,? super T,? super T,R,? extends E> mapper, int increment, boolean ignoreNotPaired)
R - mapper - increment - ignoreNotPaired - @IntermediateOp @TerminalOpTriggered public <K> ExceptionalStream<Map.Entry<K,List<T>>,E> groupBy(Throwables.Function<? super T,? extends K,? extends E> keyMapper)
K - the key typekeyMapper - @IntermediateOp @TerminalOpTriggered public <K> ExceptionalStream<Map.Entry<K,List<T>>,E> groupBy(Throwables.Function<? super T,? extends K,? extends E> keyMapper, Supplier<? extends Map<K,List<T>>> mapFactory)
K - the key typekeyMapper - mapFactory - @IntermediateOp @TerminalOpTriggered public <K,V> ExceptionalStream<Map.Entry<K,List<V>>,E> groupBy(Throwables.Function<? super T,? extends K,? extends E> keyMapper, Throwables.Function<? super T,? extends V,? extends E> valueMapper)
K - the key typeV - the value typekeyMapper - valueMapper - Collectors.toMultimap(Function, Function)@IntermediateOp @TerminalOpTriggered public <K,V> ExceptionalStream<Map.Entry<K,List<V>>,E> groupBy(Throwables.Function<? super T,? extends K,? extends E> keyMapper, Throwables.Function<? super T,? extends V,? extends E> valueMapper, Supplier<? extends Map<K,List<V>>> mapFactory)
K - the key typeV - the value typekeyMapper - valueMapper - mapFactory - Collectors.toMultimap(Function, Function, Supplier)@IntermediateOp @TerminalOpTriggered public <K,V> ExceptionalStream<Map.Entry<K,V>,E> groupBy(Throwables.Function<? super T,? extends K,? extends E> keyMapper, Throwables.Function<? super T,? extends V,? extends E> valueMapper, Throwables.BinaryOperator<V,? extends E> mergeFunction)
K - the key typeV - the value typekeyMapper - valueMapper - mergeFunction - @IntermediateOp @TerminalOpTriggered public <K,V> ExceptionalStream<Map.Entry<K,V>,E> groupBy(Throwables.Function<? super T,? extends K,? extends E> keyMapper, Throwables.Function<? super T,? extends V,? extends E> valueMapper, Throwables.BinaryOperator<V,? extends E> mergeFunction, Supplier<? extends Map<K,V>> mapFactory)
K - the key typeV - the value typekeyMapper - valueMapper - mergeFunction - mapFactory - Fn.Fnn#throwingMerger()},
Fn.Fnn#replacingMerger()},
Fn.Fnn#ignoringMerger()}@IntermediateOp @TerminalOpTriggered public <K,A,D> ExceptionalStream<Map.Entry<K,D>,E> groupBy(Throwables.Function<? super T,? extends K,? extends E> keyMapper, Collector<? super T,A,D> downstream)
K - the key typeA - D - keyMapper - downstream - E - the e@IntermediateOp @TerminalOpTriggered public <K,A,D> ExceptionalStream<Map.Entry<K,D>,E> groupBy(Throwables.Function<? super T,? extends K,? extends E> keyMapper, Collector<? super T,A,D> downstream, Supplier<? extends Map<K,D>> mapFactory)
K - the key typeA - D - keyMapper - downstream - mapFactory - E - the e@IntermediateOp @TerminalOpTriggered public <K,V,A,D> ExceptionalStream<Map.Entry<K,D>,E> groupBy(Throwables.Function<? super T,? extends K,? extends E> keyMapper, Throwables.Function<? super T,? extends V,? extends E> valueMapper, Collector<? super V,A,D> downstream)
K - the key typeV - the value typeA - D - keyMapper - valueMapper - downstream - E - the e@IntermediateOp @TerminalOpTriggered public <K,V,A,D> ExceptionalStream<Map.Entry<K,D>,E> groupBy(Throwables.Function<? super T,? extends K,? extends E> keyMapper, Throwables.Function<? super T,? extends V,? extends E> valueMapper, Collector<? super V,A,D> downstream, Supplier<? extends Map<K,D>> mapFactory)
K - the key typeV - the value typeA - D - keyMapper - valueMapper - downstream - mapFactory - E - the e@IntermediateOp @TerminalOpTriggered public <K> ExceptionalStream<Map.Entry<K,Integer>,E> countBy(Throwables.Function<? super T,? extends K,? extends E> keyMapper)
K - keyMapper - @IntermediateOp public <C extends Collection<T>> ExceptionalStream<C,E> collapse(Throwables.BiPredicate<? super T,? super T,? extends E> collapsible, Supplier<? extends C> supplier)
C - collapsible - supplier - @IntermediateOp public ExceptionalStream<T,E> collapse(Throwables.BiPredicate<? super T,? super T,? extends E> collapsible, Throwables.BiFunction<? super T,? super T,T,? extends E> mergeFunction)
Example:
Stream.of(new Integer[0]).collapse((a, b) -> a < b, (a, b) -> a + b) => []
Stream.of(1).collapse((a, b) -> a < b, (a, b) -> a + b) => [1]
Stream.of(1, 2).collapse((a, b) -> a < b, (a, b) -> a + b) => [3]
Stream.of(1, 2, 3).collapse((a, b) -> a < b, (a, b) -> a + b) => [6]
Stream.of(1, 2, 3, 3, 2, 1).collapse((a, b) -> a < b, (a, b) -> a + b) => [6, 3, 2, 1]
collapsible - mergeFunction - @IntermediateOp public <U> ExceptionalStream<U,E> collapse(Throwables.BiPredicate<? super T,? super T,? extends E> collapsible, U init, Throwables.BiFunction<U,? super T,U,? extends E> op)
U - collapsible - init - op - @IntermediateOp public <R> ExceptionalStream<R,E> collapse(Throwables.BiPredicate<? super T,? super T,? extends E> collapsible, Throwables.Supplier<R,E> supplier, Throwables.BiConsumer<? super R,? super T,? extends E> accumulator)
R - collapsible - supplier - accumulator - @IntermediateOp public <R,A> ExceptionalStream<R,E> collapse(Throwables.BiPredicate<? super T,? super T,? extends E> collapsible, Collector<? super T,A,R> collector)
R - A - collapsible - collector - @IntermediateOp public ExceptionalStream<T,E> scan(Throwables.BiFunction<? super T,? super T,T,? extends E> accumulator)
accumulator - @IntermediateOp public <U> ExceptionalStream<U,E> scan(U init, Throwables.BiFunction<U,? super T,U,? extends E> accumulator)
U - init - accumulator - @IntermediateOp public <U> ExceptionalStream<U,E> scan(U init, Throwables.BiFunction<U,? super T,U,? extends E> accumulator, boolean initIncluded)
U - init - accumulator - initIncluded - public ExceptionalStream<T,E> intersection(Collection<?> c)
c - N.intersection(Collection, Collection)public ExceptionalStream<T,E> intersection(Throwables.Function<? super T,?,E> mapper, Collection<?> c)
mapper - c - N.intersection(Collection, Collection)public ExceptionalStream<T,E> difference(Collection<?> c)
c - N.difference(Collection, Collection)public ExceptionalStream<T,E> difference(Function<? super T,?> mapper, Collection<?> c)
mapper - c - N.difference(Collection, Collection)public ExceptionalStream<T,E> symmetricDifference(Collection<T> c)
c - N.symmetricDifference(Collection, Collection)@IntermediateOp public final ExceptionalStream<T,E> defaultIfEmpty(T defaultValue)
defaultValue - appendIfEmpty(Object...)@IntermediateOp public final ExceptionalStream<T,E> defaultIfEmpty(Throwables.Supplier<? extends ExceptionalStream<T,E>,? extends E> supplier)
supplier - appendIfEmpty(Throwables.Supplier)@IntermediateOp @SafeVarargs public final ExceptionalStream<T,E> prepend(T... a)
@IntermediateOp public ExceptionalStream<T,E> prepend(Collection<? extends T> c)
@IntermediateOp public ExceptionalStream<T,E> prepend(ExceptionalStream<T,E> s)
s - @IntermediateOp @SafeVarargs public final ExceptionalStream<T,E> append(T... a)
@IntermediateOp public ExceptionalStream<T,E> append(Collection<? extends T> c)
@IntermediateOp public ExceptionalStream<T,E> append(ExceptionalStream<T,E> s)
s - @IntermediateOp @SafeVarargs public final ExceptionalStream<T,E> appendIfEmpty(T... a)
@IntermediateOp public ExceptionalStream<T,E> appendIfEmpty(Collection<? extends T> c)
@IntermediateOp public ExceptionalStream<T,E> appendIfEmpty(Throwables.Supplier<? extends ExceptionalStream<T,E>,? extends E> supplier)
supplier - E - the e@IntermediateOp public ExceptionalStream<T,E> throwIfEmpty(Supplier<? extends E> exceptionSupplier)
@TerminalOp public <R,E2 extends Exception> u.Optional<R> applyIfNotEmpty(Throwables.Function<? super ExceptionalStream<T,E>,R,E2> func) throws E extends Exception, E2 extends Exception
@TerminalOp public <E2 extends Exception> If.OrElse acceptIfNotEmpty(Throwables.Consumer<? super ExceptionalStream<T,E>,E2> action) throws E extends Exception, E2 extends Exception
@IntermediateOp public ExceptionalStream<T,E> onEach(Throwables.Consumer<? super T,? extends E> action)
action - @IntermediateOp public ExceptionalStream<T,E> peek(Throwables.Consumer<? super T,? extends E> action)
action - @IntermediateOp public ExceptionalStream<T,E> peekFirst(Throwables.Consumer<? super T,? extends E> action)
@IntermediateOp public ExceptionalStream<T,E> peekLast(Throwables.Consumer<? super T,? extends E> action)
@IntermediateOp public ExceptionalStream<List<T>,E> splitToList(int chunkSize)
List<T> with consecutive sub sequences of the elements, each of the same size (the final sequence may be smaller).chunkSize - the desired size of each sub sequence (the last may be smaller).@IntermediateOp public ExceptionalStream<Set<T>,E> splitToSet(int chunkSize)
Set<T> with consecutive sub sequences of the elements, each of the same size (the final sequence may be smaller).chunkSize - the desired size of each sub sequence (the last may be smaller).@IntermediateOp public <C extends Collection<T>> ExceptionalStream<C,E> split(int chunkSize, IntFunction<? extends C> collectionSupplier)
C with consecutive sub sequences of the elements, each of the same size (the final sequence may be smaller).C - chunkSize - the desired size of each sub sequence (the last may be smaller).collectionSupplier - @IntermediateOp public <R,A> ExceptionalStream<R,E> split(int chunkSize, Collector<? super T,A,R> collector)
R - A - chunkSize - the desired size of each sub sequence (the last may be smaller).collector - @IntermediateOp public ExceptionalStream<List<T>,E> slidingToList(int windowSize, int increment)
windowSize - increment - @IntermediateOp public ExceptionalStream<Set<T>,E> slidingToSet(int windowSize, int increment)
windowSize - increment - @IntermediateOp public <C extends Collection<T>> ExceptionalStream<C,E> sliding(int windowSize, int increment, IntFunction<? extends C> collectionSupplier)
C - windowSize - increment - collectionSupplier - @IntermediateOp public <A,R> ExceptionalStream<R,E> sliding(int windowSize, int increment, Collector<? super T,A,R> collector)
A - R - windowSize - increment - collector - @IntermediateOp public ExceptionalStream<T,E> skip(long n)
n - @IntermediateOp public ExceptionalStream<T,E> skipNull()
@IntermediateOp public ExceptionalStream<T,E> limit(long maxSize)
maxSize - @IntermediateOp public ExceptionalStream<T,E> top(int n)
@IntermediateOp public ExceptionalStream<T,E> top(int n, Comparator<? super T> comparator)
@IntermediateOp public ExceptionalStream<T,E> last(int n)
@IntermediateOp public ExceptionalStream<T,E> skipLast(int n)
@IntermediateOp @TerminalOpTriggered public ExceptionalStream<T,E> reversed()
@IntermediateOp @TerminalOpTriggered public ExceptionalStream<T,E> rotated(int distance)
@IntermediateOp @TerminalOpTriggered public ExceptionalStream<T,E> shuffled()
@IntermediateOp @TerminalOpTriggered public ExceptionalStream<T,E> shuffled(Random rnd)
@IntermediateOp @TerminalOpTriggered public ExceptionalStream<T,E> sorted()
@IntermediateOp @TerminalOpTriggered public ExceptionalStream<T,E> reverseSorted()
@IntermediateOp @TerminalOpTriggered public ExceptionalStream<T,E> sorted(Comparator<? super T> comparator)
comparator - @IntermediateOp @TerminalOpTriggered public ExceptionalStream<T,E> sortedBy(Function<? super T,? extends Comparable> keyMapper)
keyMapper - @IntermediateOp public ExceptionalStream<T,E> intersperse(T delimiter)
@Beta @IntermediateOp public ExceptionalStream<Indexed<T>,E> indexed()
@IntermediateOp public ExceptionalStream<T,E> mergeWith(Collection<? extends T> b, Throwables.BiFunction<? super T,? super T,MergeResult,E> nextSelector)
b - nextSelector - first parameter is selected if Nth.FIRST is returned, otherwise the second parameter is selected.@IntermediateOp public ExceptionalStream<T,E> mergeWith(ExceptionalStream<? extends T,E> b, Throwables.BiFunction<? super T,? super T,MergeResult,E> nextSelector)
b - nextSelector - first parameter is selected if Nth.FIRST is returned, otherwise the second parameter is selected.@IntermediateOp public <T2,R> ExceptionalStream<R,E> zipWith(Collection<T2> b, Throwables.BiFunction<? super T,? super T2,R,? extends E> zipFunction)
T2 - R - b - zipFunction - @IntermediateOp public <T2,R> ExceptionalStream<R,E> zipWith(Collection<T2> b, T valueForNoneA, T2 valueForNoneB, Throwables.BiFunction<? super T,? super T2,R,? extends E> zipFunction)
T2 - R - b - valueForNoneA - valueForNoneB - zipFunction - @IntermediateOp public <T2,R> ExceptionalStream<R,E> zipWith(ExceptionalStream<T2,E> b, Throwables.BiFunction<? super T,? super T2,R,? extends E> zipFunction)
T2 - R - b - zipFunction - @IntermediateOp public <T2,R> ExceptionalStream<R,E> zipWith(ExceptionalStream<T2,E> b, T valueForNoneA, T2 valueForNoneB, Throwables.BiFunction<? super T,? super T2,R,? extends E> zipFunction)
T2 - R - b - valueForNoneA - valueForNoneB - zipFunction - @IntermediateOp public <T2,T3,R> ExceptionalStream<R,E> zipWith(ExceptionalStream<T2,E> b, ExceptionalStream<T3,E> c, Throwables.TriFunction<? super T,? super T2,? super T3,R,? extends E> zipFunction)
T2 - T3 - R - b - c - zipFunction - @IntermediateOp public <T2,T3,R> ExceptionalStream<R,E> zipWith(ExceptionalStream<T2,E> b, ExceptionalStream<T3,E> c, T valueForNoneA, T2 valueForNoneB, T3 valueForNoneC, Throwables.TriFunction<? super T,? super T2,? super T3,R,? extends E> zipFunction)
T2 - T3 - R - b - c - valueForNoneA - valueForNoneB - valueForNoneC - zipFunction - @IntermediateOp public <U> ExceptionalStream<Pair<T,U>,E> crossJoin(Collection<? extends U> b)
Stream and m is the size of specified collection b.U - b - @IntermediateOp public <U,R> ExceptionalStream<R,E> crossJoin(Collection<? extends U> b, Throwables.BiFunction<? super T,? super U,R,? extends E> func)
Stream and m is the size of specified collection b.U - R - b - func - @IntermediateOp public <U,R> ExceptionalStream<R,E> crossJoin(ExceptionalStream<? extends U,E> b, Throwables.BiFunction<? super T,? super U,R,? extends E> func)
Stream and m is the size of specified collection b.U - R - b - will be loaded to memory. If b is too big to load to memory, please use b.cronJoin(this, ...)func - @IntermediateOp public <U,K> ExceptionalStream<Pair<T,U>,E> innerJoin(Collection<? extends U> b, Throwables.Function<? super T,? extends K,? extends E> leftKeyMapper, Throwables.Function<? super U,? extends K,? extends E> rightKeyMapper)
Stream and m is the size of specified collection b.U - K - b - leftKeyMapper - rightKeyMapper - @IntermediateOp public <U,K,R> ExceptionalStream<R,E> innerJoin(Collection<? extends U> b, Throwables.Function<? super T,? extends K,? extends E> leftKeyMapper, Throwables.Function<? super U,? extends K,? extends E> rightKeyMapper, Throwables.BiFunction<? super T,? super U,R,? extends E> func)
Stream and m is the size of specified collection b.U - K - R - b - leftKeyMapper - rightKeyMapper - func - public <K> ExceptionalStream<Pair<T,T>,E> innerJoin(Collection<? extends T> b, Throwables.Function<? super T,? extends K,? extends E> keyMapper)
Stream and m is the size of specified collection b.K - b - keyMapper - @IntermediateOp public <K,R> ExceptionalStream<R,E> innerJoin(Collection<? extends T> b, Throwables.Function<? super T,? extends K,? extends E> keyMapper, Throwables.BiFunction<? super T,? super T,R,? extends E> func)
Stream and m is the size of specified collection b.K - R - b - keyMapper - func - @IntermediateOp public <U,K,R> ExceptionalStream<R,E> innerJoin(ExceptionalStream<? extends U,E> b, Throwables.Function<? super T,? extends K,? extends E> leftKeyMapper, Throwables.Function<? super U,? extends K,? extends E> rightKeyMapper, Throwables.BiFunction<? super T,? super U,R,? extends E> func)
Stream and m is the size of specified collection b.U - K - R - b - will be loaded to memory. If b is too big to load to memory, please use b.innerJoin(this, ...)leftKeyMapper - rightKeyMapper - func - @Deprecated @IntermediateOp public <U> ExceptionalStream<Pair<T,U>,E> innerJoin(Collection<? extends U> b, Throwables.BiPredicate<? super T,? super U,? extends E> predicate)
innerJoin(Collection, Function, Function) first.Stream and m is the size of specified collection b.U - b - predicate - @Deprecated @IntermediateOp public <U,R> ExceptionalStream<R,E> innerJoin(Collection<? extends U> b, Throwables.BiPredicate<? super T,? super U,? extends E> predicate, Throwables.BiFunction<? super T,? super U,R,? extends E> func)
innerJoin(Collection, Function, Function, BiFunction) first.Stream and m is the size of specified collection b.U - R - b - predicate - func - @IntermediateOp public <U,K> ExceptionalStream<Pair<T,U>,E> fullJoin(Collection<? extends U> b, Throwables.Function<? super T,? extends K,? extends E> leftKeyMapper, Throwables.Function<? super U,? extends K,? extends E> rightKeyMapper)
Stream and m is the size of specified collection b.K - U - b - leftKeyMapper - rightKeyMapper - @IntermediateOp public <U,K,R> ExceptionalStream<R,E> fullJoin(Collection<? extends U> b, Throwables.Function<? super T,? extends K,? extends E> leftKeyMapper, Throwables.Function<? super U,? extends K,? extends E> rightKeyMapper, Throwables.BiFunction<? super T,? super U,R,? extends E> func)
Stream and m is the size of specified collection b.K - U - R - b - leftKeyMapper - rightKeyMapper - func - public <K> ExceptionalStream<Pair<T,T>,E> fullJoin(Collection<? extends T> b, Throwables.Function<? super T,? extends K,? extends E> keyMapper)
Stream and m is the size of specified collection b.K - b - keyMapper - @IntermediateOp public <K,R> ExceptionalStream<R,E> fullJoin(Collection<? extends T> b, Throwables.Function<? super T,? extends K,? extends E> keyMapper, Throwables.BiFunction<? super T,? super T,R,? extends E> func)
Stream and m is the size of specified collection b.K - R - b - keyMapper - func - @IntermediateOp public <U,K,R> ExceptionalStream<R,E> fullJoin(ExceptionalStream<? extends U,E> b, Throwables.Function<? super T,? extends K,? extends E> leftKeyMapper, Throwables.Function<? super U,? extends K,? extends E> rightKeyMapper, Throwables.BiFunction<? super T,? super U,R,? extends E> func)
K - U - R - b - will be loaded to memory. If b is too big to load to memory, please use b.fullJoin(this, ...)leftKeyMapper - rightKeyMapper - func - @Deprecated @IntermediateOp public <U> ExceptionalStream<Pair<T,U>,E> fullJoin(Collection<? extends U> b, Throwables.BiPredicate<? super T,? super U,? extends E> predicate)
fullJoin(Collection, Function, Function) first.Stream and m is the size of specified collection b.U - b - predicate - @Deprecated @IntermediateOp public <U,R> ExceptionalStream<R,E> fullJoin(Collection<? extends U> b, Throwables.BiPredicate<? super T,? super U,? extends E> predicate, Throwables.BiFunction<? super T,? super U,R,? extends E> func)
fullJoin(Collection, Function, Function, BiFunction) first.Stream and m is the size of specified collection b.U - R - b - predicate - func - @IntermediateOp public <U,K> ExceptionalStream<Pair<T,U>,E> leftJoin(Collection<? extends U> b, Throwables.Function<? super T,? extends K,? extends E> leftKeyMapper, Throwables.Function<? super U,? extends K,? extends E> rightKeyMapper)
Stream and m is the size of specified collection b.K - U - b - leftKeyMapper - rightKeyMapper - @IntermediateOp public <U,K,R> ExceptionalStream<R,E> leftJoin(Collection<? extends U> b, Throwables.Function<? super T,? extends K,? extends E> leftKeyMapper, Throwables.Function<? super U,? extends K,? extends E> rightKeyMapper, Throwables.BiFunction<? super T,? super U,R,? extends E> func)
Stream and m is the size of specified collection b.K - U - R - b - leftKeyMapper - rightKeyMapper - func - public <K> ExceptionalStream<Pair<T,T>,E> leftJoin(Collection<? extends T> b, Throwables.Function<? super T,? extends K,? extends E> keyMapper)
Stream and m is the size of specified collection b.K - b - keyMapper - @IntermediateOp public <K,R> ExceptionalStream<R,E> leftJoin(Collection<? extends T> b, Throwables.Function<? super T,? extends K,? extends E> keyMapper, Throwables.BiFunction<? super T,? super T,R,? extends E> func)
Stream and m is the size of specified collection b.K - R - b - keyMapper - func - @IntermediateOp public <U,K,R> ExceptionalStream<R,E> leftJoin(ExceptionalStream<? extends U,E> b, Throwables.Function<? super T,? extends K,? extends E> leftKeyMapper, Throwables.Function<? super U,? extends K,? extends E> rightKeyMapper, Throwables.BiFunction<? super T,? super U,R,? extends E> func)
Stream and m is the size of specified collection b.K - U - R - b - will be loaded to memory. If b is too big to load to memory, please use b.leftJoin(this, ...)leftKeyMapper - rightKeyMapper - func - @Deprecated @IntermediateOp public <U> ExceptionalStream<Pair<T,U>,E> leftJoin(Collection<? extends U> b, Throwables.BiPredicate<? super T,? super U,? extends E> predicate)
leftJoin(Collection, Function, Function) first.Stream and m is the size of specified collection b.U - b - predicate - @Deprecated @IntermediateOp public <U,R> ExceptionalStream<R,E> leftJoin(Collection<? extends U> b, Throwables.BiPredicate<? super T,? super U,? extends E> predicate, Throwables.BiFunction<? super T,? super U,R,? extends E> func)
leftJoin(Collection, Function, Function, BiFunction) first.Stream and m is the size of specified collection b.U - R - b - predicate - func - @IntermediateOp public <U,K> ExceptionalStream<Pair<T,U>,E> rightJoin(Collection<? extends U> b, Throwables.Function<? super T,? extends K,? extends E> leftKeyMapper, Throwables.Function<? super U,? extends K,? extends E> rightKeyMapper)
Stream and m is the size of specified collection b.K - U - b - leftKeyMapper - rightKeyMapper - @IntermediateOp public <U,K,R> ExceptionalStream<R,E> rightJoin(Collection<? extends U> b, Throwables.Function<? super T,? extends K,? extends E> leftKeyMapper, Throwables.Function<? super U,? extends K,? extends E> rightKeyMapper, Throwables.BiFunction<? super T,? super U,R,? extends E> func)
Stream and m is the size of specified collection b.K - U - R - b - leftKeyMapper - rightKeyMapper - func - public <K> ExceptionalStream<Pair<T,T>,E> rightJoin(Collection<? extends T> b, Throwables.Function<? super T,? extends K,? extends E> keyMapper)
Stream and m is the size of specified collection b.K - b - keyMapper - @IntermediateOp public <K,R> ExceptionalStream<R,E> rightJoin(Collection<? extends T> b, Throwables.Function<? super T,? extends K,? extends E> keyMapper, Throwables.BiFunction<? super T,? super T,R,? extends E> func)
Stream and m is the size of specified collection b.K - R - b - keyMapper - func - @IntermediateOp public <U,K,R> ExceptionalStream<R,E> rightJoin(ExceptionalStream<? extends U,E> b, Throwables.Function<? super T,? extends K,? extends E> leftKeyMapper, Throwables.Function<? super U,? extends K,? extends E> rightKeyMapper, Throwables.BiFunction<? super T,? super U,R,? extends E> func)
Stream and m is the size of specified collection b.K - U - R - b - will be loaded to memory. If b is too big to load to memory, please use b.rightJoin(this, ...)leftKeyMapper - rightKeyMapper - func - @Deprecated @IntermediateOp public <U> ExceptionalStream<Pair<T,U>,E> rightJoin(Collection<? extends U> b, Throwables.BiPredicate<? super T,? super U,? extends E> predicate)
rightJoin(Collection, Function, Function) first.Stream and m is the size of specified collection b.U - b - predicate - @Deprecated @IntermediateOp public <U,R> ExceptionalStream<R,E> rightJoin(Collection<? extends U> b, Throwables.BiPredicate<? super T,? super U,? extends E> predicate, Throwables.BiFunction<? super T,? super U,R,? extends E> func)
rightJoin(Collection, Function, Function, BiFunction) first.Stream and m is the size of specified collection b.U - R - b - predicate - func - @IntermediateOp public <U,K> ExceptionalStream<Pair<T,List<U>>,E> groupJoin(Collection<? extends U> b, Throwables.Function<? super T,? extends K,? extends E> leftKeyMapper, Throwables.Function<? super U,? extends K,? extends E> rightKeyMapper)
Stream and m is the size of specified collection b.U - K - b - leftKeyMapper - rightKeyMapper - @IntermediateOp public <U,K,R> ExceptionalStream<R,E> groupJoin(Collection<? extends U> b, Throwables.Function<? super T,? extends K,? extends E> leftKeyMapper, Throwables.Function<? super U,? extends K,? extends E> rightKeyMapper, Throwables.BiFunction<? super T,? super List<U>,R,? extends E> func)
Stream and m is the size of specified collection b.U - K - R - b - leftKeyMapper - rightKeyMapper - func - public <K> ExceptionalStream<Pair<T,List<T>>,E> groupJoin(Collection<? extends T> b, Throwables.Function<? super T,? extends K,? extends E> keyMapper)
Stream and m is the size of specified collection b.K - b - keyMapper - @IntermediateOp public <K,R> ExceptionalStream<R,E> groupJoin(Collection<? extends T> b, Throwables.Function<? super T,? extends K,? extends E> keyMapper, Throwables.BiFunction<? super T,? super List<T>,R,? extends E> func)
Stream and m is the size of specified collection b.K - R - b - keyMapper - func - @IntermediateOp public <U,K,R> ExceptionalStream<R,E> groupJoin(ExceptionalStream<? extends U,E> b, Throwables.Function<? super T,? extends K,? extends E> leftKeyMapper, Throwables.Function<? super U,? extends K,? extends E> rightKeyMapper, Throwables.BiFunction<? super T,? super List<U>,R,? extends E> func)
Stream and m is the size of specified collection b.U - K - R - b - will be loaded to memory. If b is too big to load to memory, please use b.groupJoin(this, ...)leftKeyMapper - rightKeyMapper - func - @IntermediateOp public <U,K> ExceptionalStream<Pair<T,U>,E> groupJoin(Collection<? extends U> b, Throwables.Function<? super T,? extends K,? extends E> leftKeyMapper, Throwables.Function<? super U,? extends K,? extends E> rightKeyMapper, Throwables.BinaryOperator<U,? extends E> mergeFunction)
Stream and m is the size of specified collection b.U - K - b - leftKeyMapper - rightKeyMapper - mergeFunction - @IntermediateOp public <U,K,R> ExceptionalStream<R,E> groupJoin(Collection<? extends U> b, Throwables.Function<? super T,? extends K,? extends E> leftKeyMapper, Throwables.Function<? super U,? extends K,? extends E> rightKeyMapper, Throwables.BinaryOperator<U,? extends E> mergeFunction, Throwables.BiFunction<? super T,? super U,R,? extends E> func)
Stream and m is the size of specified collection b.U - K - R - b - leftKeyMapper - rightKeyMapper - mergeFunction - func - @IntermediateOp public <U,K,R> ExceptionalStream<R,E> groupJoin(ExceptionalStream<? extends U,E> b, Throwables.Function<? super T,? extends K,? extends E> leftKeyMapper, Throwables.Function<? super U,? extends K,? extends E> rightKeyMapper, Throwables.BinaryOperator<U,? extends E> mergeFunction, Throwables.BiFunction<? super T,? super U,R,? extends E> func)
Stream and m is the size of specified collection b.U - K - R - b - will be loaded to memory. If b is too big to load to memory, please use b.groupJoin(this, ...)leftKeyMapper - rightKeyMapper - mergeFunction - func - @IntermediateOp public <U,K,A,D> ExceptionalStream<Pair<T,D>,E> groupJoin(Collection<? extends U> b, Throwables.Function<? super T,? extends K,? extends E> leftKeyMapper, Throwables.Function<? super U,? extends K,? extends E> rightKeyMapper, Collector<? super U,A,D> downstream)
Stream and m is the size of specified collection b.U - K - A - D - b - leftKeyMapper - rightKeyMapper - downstream - @IntermediateOp public <U,K,A,D,R> ExceptionalStream<R,E> groupJoin(Collection<? extends U> b, Throwables.Function<? super T,? extends K,? extends E> leftKeyMapper, Throwables.Function<? super U,? extends K,? extends E> rightKeyMapper, Collector<? super U,A,D> downstream, Throwables.BiFunction<? super T,? super D,R,? extends E> func)
Stream and m is the size of specified collection b.U - K - A - D - R - b - leftKeyMapper - rightKeyMapper - downstream - func - @IntermediateOp public <U,K,A,D,R> ExceptionalStream<R,E> groupJoin(ExceptionalStream<? extends U,E> b, Throwables.Function<? super T,? extends K,? extends E> leftKeyMapper, Throwables.Function<? super U,? extends K,? extends E> rightKeyMapper, Collector<? super U,A,D> downstream, Throwables.BiFunction<? super T,? super D,R,? extends E> func)
Stream and m is the size of specified collection b.U - K - A - D - R - b - leftKeyMapper - rightKeyMapper - downstream - func - @TerminalOp public <E2 extends Exception> void forEach(Throwables.Consumer<? super T,E2> action) throws E extends Exception, E2 extends Exception
@TerminalOp public <E2 extends Exception> void forEachIndexed(Throwables.IndexedConsumer<? super T,E2> action) throws E extends Exception, E2 extends Exception
@TerminalOp @Beta public <E2 extends Exception> void forEachToBreak(Throwables.BiConsumer<? super T,MutableBoolean,E2> action) throws E extends Exception, E2 extends Exception
@TerminalOp @Beta public <E2 extends Exception> void forEachToBreak(MutableBoolean flagToBreak, Throwables.Consumer<? super T,E2> action) throws E extends Exception, E2 extends Exception
@TerminalOp public <E2 extends Exception,E3 extends Exception> void forEach(Throwables.Consumer<? super T,E2> action, Throwables.Runnable<E3> onComplete) throws E extends Exception, E2 extends Exception, E3 extends Exception
@TerminalOp public <U,E2 extends Exception,E3 extends Exception> void forEach(Throwables.Function<? super T,? extends Collection<? extends U>,E2> flatMapper, Throwables.BiConsumer<? super T,? super U,E3> action) throws E extends Exception, E2 extends Exception, E3 extends Exception
@TerminalOp public <T2,T3,E2 extends Exception,E3 extends Exception,E4 extends Exception> void forEach(Throwables.Function<? super T,? extends Collection<T2>,E2> flatMapper, Throwables.Function<? super T2,? extends Collection<T3>,E3> flatMapper2, Throwables.TriConsumer<? super T,? super T2,? super T3,E4> action) throws E extends Exception, E2 extends Exception, E3 extends Exception, E4 extends Exception
@TerminalOp public <E2 extends Exception> void forEachPair(Throwables.BiConsumer<? super T,? super T,E2> action) throws E extends Exception, E2 extends Exception
@TerminalOp public <E2 extends Exception> void forEachPair(Throwables.BiConsumer<? super T,? super T,E2> action, int increment) throws E extends Exception, E2 extends Exception
@TerminalOp public <E2 extends Exception> void forEachTriple(Throwables.TriConsumer<? super T,? super T,? super T,E2> action) throws E extends Exception, E2 extends Exception
@TerminalOp public <E2 extends Exception> void forEachTriple(Throwables.TriConsumer<? super T,? super T,? super T,E2> action, int increment) throws E extends Exception, E2 extends Exception
@TerminalOp public u.Optional<T> min(Comparator<? super T> comparator) throws E extends Exception
@TerminalOp public u.Optional<T> minBy(Function<? super T,? extends Comparable> keyMapper) throws E extends Exception
@TerminalOp public u.Optional<T> max(Comparator<? super T> comparator) throws E extends Exception
@TerminalOp public u.Optional<T> maxBy(Function<? super T,? extends Comparable> keyMapper) throws E extends Exception
@TerminalOp public <E2 extends Exception> boolean anyMatch(Throwables.Predicate<? super T,E2> predicate) throws E extends Exception, E2 extends Exception
@TerminalOp public <E2 extends Exception> boolean allMatch(Throwables.Predicate<? super T,E2> predicate) throws E extends Exception, E2 extends Exception
@TerminalOp public <E2 extends Exception> boolean noneMatch(Throwables.Predicate<? super T,E2> predicate) throws E extends Exception, E2 extends Exception
@TerminalOp public <E2 extends Exception> boolean nMatch(long atLeast, long atMost, Throwables.Predicate<? super T,E2> predicate) throws E extends Exception, E2 extends Exception
@TerminalOp public <E2 extends Exception> u.Optional<T> findFirst(Throwables.Predicate<? super T,E2> predicate) throws E extends Exception, E2 extends Exception
@TerminalOp public <E2 extends Exception> u.Optional<T> findLast(Throwables.Predicate<? super T,E2> predicate) throws E extends Exception, E2 extends Exception
stream.reversed().findFirst(predicate) for better performance if possible.@TerminalOp public <E2 extends Exception> u.Optional<T> findAny(Throwables.Predicate<? super T,E2> predicate) throws E extends Exception, E2 extends Exception
findFirst(Throwables.Predicate).E2 - predicate - EE2E extends ExceptionfindFirst(com.landawn.abacus.util.Throwables.Predicate)@TerminalOp @SafeVarargs public final boolean containsAll(T... a) throws E extends Exception
@TerminalOp public boolean containsAll(Collection<? extends T> c) throws E extends Exception
@TerminalOp @SafeVarargs public final boolean containsAny(T... a) throws E extends Exception
@TerminalOp public boolean containsAny(Collection<? extends T> c) throws E extends Exception
@TerminalOp public boolean hasDuplicates() throws E extends Exception
@TerminalOp public u.Optional<T> kthLargest(int k, Comparator<? super T> comparator) throws E extends Exception
@TerminalOp public u.Optional<Map<Percentage,T>> percentiles(Comparator<? super T> comparator) throws E extends Exception
@TerminalOp public u.Optional<T> first() throws E extends Exception
@TerminalOp public u.Optional<T> last() throws E extends Exception
@TerminalOp @Beta public u.Optional<T> elementAt(long position) throws E extends Exception
@TerminalOp public u.Optional<T> onlyOne() throws DuplicatedResultException, E extends Exception
DuplicatedResultException - if there are more than one elements.E - the eE extends Exception@TerminalOp public long count() throws E extends Exception
@TerminalOp public Object[] toArray() throws E extends Exception
@TerminalOp public <A> A[] toArray(IntFunction<A[]> generator) throws E extends Exception
@TerminalOp public List<T> toList() throws E extends Exception
@TerminalOp public Set<T> toSet() throws E extends Exception
@TerminalOp public ImmutableList<T> toImmutableList() throws E extends Exception
@TerminalOp public ImmutableSet<T> toImmutableSet() throws E extends Exception
@TerminalOp public <C extends Collection<T>> C toCollection(Supplier<? extends C> supplier) throws E extends Exception
@TerminalOp public <R,E2 extends Exception> R toListAndThen(Throwables.Function<? super List<T>,R,E2> func) throws E extends Exception, E2 extends Exception
@TerminalOp public <R,E2 extends Exception> R toSetAndThen(Throwables.Function<? super Set<T>,R,E2> func) throws E extends Exception, E2 extends Exception
@TerminalOp public <R,CC extends Collection<T>,E2 extends Exception> R toCollectionAndThen(Supplier<? extends CC> supplier, Throwables.Function<? super CC,R,E2> func) throws E extends Exception, E2 extends Exception
@TerminalOp public <K,V,E2 extends Exception,E3 extends Exception> Map<K,V> toMap(Throwables.Function<? super T,? extends K,E2> keyMapper, Throwables.Function<? super T,? extends V,E3> valueMapper) throws E extends Exception, E2 extends Exception, E3 extends Exception, IllegalStateException
K - the key typeV - the value typekeyMapper - valueMapper - E - the eIllegalStateException - if there are duplicated keys.E extends ExceptionFn.Fnn#throwingMerger()},
Fn.Fnn#replacingMerger()},
Fn.Fnn#ignoringMerger()}@TerminalOp public <K,V,M extends Map<K,V>,E2 extends Exception,E3 extends Exception> M toMap(Throwables.Function<? super T,? extends K,E2> keyMapper, Throwables.Function<? super T,? extends V,E3> valueMapper, Supplier<? extends M> mapFactory) throws E extends Exception, E2 extends Exception, E3 extends Exception, IllegalStateException
K - the key typeV - the value typeM - keyMapper - valueMapper - mapFactory - E - the eIllegalStateException - if there are duplicated keys.E extends ExceptionFn.Fnn#throwingMerger()},
Fn.Fnn#replacingMerger()},
Fn.Fnn#ignoringMerger()}@TerminalOp public <K,V,E2 extends Exception,E3 extends Exception> Map<K,V> toMap(Throwables.Function<? super T,? extends K,E2> keyMapper, Throwables.Function<? super T,? extends V,E3> valueMapper, Throwables.BinaryOperator<V,? extends E> mergeFunction) throws E extends Exception, E2 extends Exception, E3 extends Exception
@TerminalOp public <K,V,M extends Map<K,V>,E2 extends Exception,E3 extends Exception> M toMap(Throwables.Function<? super T,? extends K,E2> keyMapper, Throwables.Function<? super T,? extends V,E3> valueMapper, Throwables.BinaryOperator<V,? extends E> mergeFunction, Supplier<? extends M> mapFactory) throws E extends Exception, E2 extends Exception, E3 extends Exception
@TerminalOp public <K,A,D,E2 extends Exception> Map<K,D> toMap(Throwables.Function<? super T,? extends K,E2> keyMapper, Collector<? super T,A,D> downstream) throws E extends Exception, E2 extends Exception
@TerminalOp public <K,A,D,M extends Map<K,D>,E2 extends Exception> M toMap(Throwables.Function<? super T,? extends K,E2> keyMapper, Collector<? super T,A,D> downstream, Supplier<? extends M> mapFactory) throws E extends Exception, E2 extends Exception
@TerminalOp public <K,V,A,D,E2 extends Exception,E3 extends Exception> Map<K,D> toMap(Throwables.Function<? super T,? extends K,E2> keyMapper, Throwables.Function<? super T,? extends V,E3> valueMapper, Collector<? super V,A,D> downstream) throws E extends Exception, E2 extends Exception, E3 extends Exception
@TerminalOp public <K,V,A,D,M extends Map<K,D>,E2 extends Exception,E3 extends Exception> M toMap(Throwables.Function<? super T,? extends K,E2> keyMapper, Throwables.Function<? super T,? extends V,E3> valueMapper, Collector<? super V,A,D> downstream, Supplier<? extends M> mapFactory) throws E extends Exception, E2 extends Exception, E3 extends Exception
@TerminalOp public <K,E2 extends Exception> Map<K,List<T>> groupTo(Throwables.Function<? super T,? extends K,E2> keyMapper) throws E extends Exception, E2 extends Exception
K - the key typekeyMapper - E - the eE extends ExceptionCollectors.groupingBy(Function)@TerminalOp public <K,M extends Map<K,List<T>>,E2 extends Exception> M groupTo(Throwables.Function<? super T,? extends K,E2> keyMapper, Supplier<? extends M> mapFactory) throws E extends Exception, E2 extends Exception
K - the key typeM - keyMapper - mapFactory - E - the eE extends ExceptionCollectors.groupingBy(Function, Supplier)@TerminalOp public <K,V,E2 extends Exception,E3 extends Exception> Map<K,List<V>> groupTo(Throwables.Function<? super T,? extends K,E2> keyMapper, Throwables.Function<? super T,? extends V,E3> valueMapper) throws E extends Exception, E2 extends Exception, E3 extends Exception
@TerminalOp public <K,V,M extends Map<K,List<V>>,E2 extends Exception,E3 extends Exception> M groupTo(Throwables.Function<? super T,? extends K,E2> keyMapper, Throwables.Function<? super T,? extends V,E3> valueMapper, Supplier<? extends M> mapFactory) throws E extends Exception, E2 extends Exception, E3 extends Exception
K - the key typeV - the value typeM - keyMapper - valueMapper - mapFactory - E - the eE extends ExceptionCollectors.toMultimap(Function, Function, Supplier)@TerminalOp public <K,E2 extends Exception> ListMultimap<K,T> toMultimap(Throwables.Function<? super T,? extends K,E2> keyMapper) throws E extends Exception, E2 extends Exception
@TerminalOp public <K,V extends Collection<T>,M extends Multimap<K,T,V>,E2 extends Exception> M toMultimap(Throwables.Function<? super T,? extends K,E2> keyMapper, Supplier<? extends M> mapFactory) throws E extends Exception, E2 extends Exception
@TerminalOp public <K,V,E2 extends Exception,E3 extends Exception> ListMultimap<K,V> toMultimap(Throwables.Function<? super T,? extends K,E2> keyMapper, Throwables.Function<? super T,? extends V,E3> valueMapper) throws E extends Exception, E2 extends Exception, E3 extends Exception
@TerminalOp public <K,V,C extends Collection<V>,M extends Multimap<K,V,C>,E2 extends Exception,E3 extends Exception> M toMultimap(Throwables.Function<? super T,? extends K,E2> keyMapper, Throwables.Function<? super T,? extends V,E3> valueMapper, Supplier<? extends M> mapFactory) throws E extends Exception, E2 extends Exception, E3 extends Exception
@TerminalOp public Multiset<T> toMultiset() throws E extends Exception
@TerminalOp public Multiset<T> toMultiset(Supplier<? extends Multiset<T>> supplier) throws E extends Exception
@TerminalOp public DataSet toDataSet() throws E extends Exception
@TerminalOp public DataSet toDataSet(List<String> columnNames) throws E extends Exception
columnNames is null or empty, the first row will be used as column names if its type is array or list,
or obtain the column names from first row if its type is entity or map.@TerminalOp public <E2 extends Exception> u.OptionalLong sumInt(Throwables.ToIntFunction<? super T,E2> func) throws E extends Exception, E2 extends Exception
@TerminalOp public <E2 extends Exception> u.OptionalLong sumLong(Throwables.ToLongFunction<? super T,E2> func) throws E extends Exception, E2 extends Exception
@TerminalOp public <E2 extends Exception> u.OptionalDouble sumDouble(Throwables.ToDoubleFunction<? super T,E2> func) throws E extends Exception, E2 extends Exception
@TerminalOp public <E2 extends Exception> u.OptionalDouble averageInt(Throwables.ToIntFunction<? super T,E2> func) throws E extends Exception, E2 extends Exception
@TerminalOp public <E2 extends Exception> u.OptionalDouble averageLong(Throwables.ToLongFunction<? super T,E2> func) throws E extends Exception, E2 extends Exception
@TerminalOp public <E2 extends Exception> u.OptionalDouble averageDouble(Throwables.ToDoubleFunction<? super T,E2> func) throws E extends Exception, E2 extends Exception
@TerminalOp public <E2 extends Exception> u.Optional<T> reduce(Throwables.BinaryOperator<T,E2> accumulator) throws E extends Exception, E2 extends Exception
@TerminalOp public <U,E2 extends Exception> U reduce(U identity, Throwables.BiFunction<U,? super T,U,E2> accumulator) throws E extends Exception, E2 extends Exception
@TerminalOp public <R,E2 extends Exception,E3 extends Exception> R collect(Throwables.Supplier<R,E2> supplier, Throwables.BiConsumer<? super R,? super T,E3> accumulator) throws E extends Exception, E2 extends Exception, E3 extends Exception
@TerminalOp public <R,RR,E2 extends Exception,E3 extends Exception,E4 extends Exception> RR collect(Throwables.Supplier<R,E2> supplier, Throwables.BiConsumer<? super R,? super T,E3> accumulator, Throwables.Function<? super R,? extends RR,E4> finisher) throws E extends Exception, E2 extends Exception, E3 extends Exception, E4 extends Exception
@TerminalOp public <R,A> R collect(Collector<? super T,A,R> collector) throws E extends Exception
@TerminalOp public <R,A> R collect(Collector<? super T,A,R> collector) throws E extends Exception
@TerminalOp public <R,RR,A,E2 extends Exception> RR collectAndThen(Collector<? super T,A,R> collector, Throwables.Function<? super R,? extends RR,E2> func) throws E extends Exception, E2 extends Exception
@TerminalOp public <R,RR,A,E2 extends Exception> RR collectAndThen(Collector<? super T,A,R> collector, Throwables.Function<? super R,? extends RR,E2> func) throws E extends Exception, E2 extends Exception
@TerminalOp public String join(CharSequence delimiter) throws E extends Exception
@TerminalOp public String join(CharSequence delimiter, CharSequence prefix, CharSequence suffix) throws E extends Exception
public long persist(File file) throws E extends Exception, IOException
E extends ExceptionIOExceptionpublic long persist(String header, String tail, File file) throws E extends Exception, IOException
E extends ExceptionIOExceptionpublic long persist(Throwables.Function<? super T,String,IOException> toLine, File file) throws E extends Exception, IOException
final JSONSerializationConfig jsc = JSC.create().setBracketRootValue(false); final Throwables.Function super T, String, IOException> toLine = it -> N.toJSON(it, jsc); stream.persist(toLine, header, outputFile);
toLine - file - EIOExceptionE extends Exceptionpublic long persist(Throwables.Function<? super T,String,IOException> toLine, String header, String tail, File file) throws E extends Exception, IOException
E extends ExceptionIOExceptionpublic long persist(Throwables.Function<? super T,String,IOException> toLine, OutputStream os) throws E extends Exception, IOException
E extends ExceptionIOExceptionpublic long persist(Throwables.Function<? super T,String,IOException> toLine, Writer writer) throws E extends Exception, IOException
final JSONSerializationConfig jsc = JSC.create().setBracketRootValue(false); final Throwables.Function super T, String, IOException> toLine = it -> N.toJSON(it, jsc); stream.persist(toLine, header, outputFile);
toLine - writer - EIOExceptionE extends Exceptionpublic long persist(Throwables.Function<? super T,String,IOException> toLine, String header, String tail, Writer writer) throws E extends Exception, IOException
E extends ExceptionIOExceptionpublic long persist(Throwables.BiConsumer<? super T,Writer,IOException> writeLine, Writer writer) throws E extends Exception, IOException
E extends ExceptionIOExceptionpublic long persist(Throwables.BiConsumer<? super T,Writer,IOException> writeLine, String header, String tail, Writer writer) throws E extends Exception, IOException
E extends ExceptionIOExceptionpublic long persist(Connection conn, String insertSQL, int batchSize, int batchInterval, Throwables.BiConsumer<? super T,? super PreparedStatement,SQLException> stmtSetter) throws E extends Exception, SQLException
E extends ExceptionSQLExceptionpublic long persist(PreparedStatement stmt, int batchSize, int batchInterval, Throwables.BiConsumer<? super T,? super PreparedStatement,SQLException> stmtSetter) throws E extends Exception, SQLException
E extends ExceptionSQLException@TerminalOp @Beta public void println() throws E extends Exception
@IntermediateOp @Beta public <TT,EE extends Exception> ExceptionalStream<TT,EE> __(Throwables.Function<? super ExceptionalStream<T,E>,ExceptionalStream<TT,EE>,E> transfer) throws E extends Exception
@IntermediateOp @Beta public ExceptionalStream<T,Exception> filterE(Throwables.Predicate<? super T,? extends Exception> predicate)
predicate - @IntermediateOp @Beta public <U> ExceptionalStream<U,Exception> mapE(Throwables.Function<? super T,? extends U,? extends Exception> mapper)
U - mapper - @IntermediateOp @Beta public <R> ExceptionalStream<R,Exception> flatMapE(Throwables.Function<? super T,? extends ExceptionalStream<? extends R,? extends Exception>,? extends Exception> mapper)
R - mapper - @IntermediateOp @Beta public <R> ExceptionalStream<R,Exception> flattMapE(Throwables.Function<? super T,? extends Collection<? extends R>,? extends Exception> mapper)
R - mapper - @IntermediateOp @Beta public ExceptionalStream<T,Exception> onEachE(Throwables.Consumer<? super T,? extends Exception> action)
action - @IntermediateOp public ExceptionalStream<T,E> onClose(Throwables.Runnable<? extends E> closeHandler)
closeHandler - @TerminalOp public void close()
close in interface Closeableclose in interface AutoCloseableE - the eCopyright © 2021. All rights reserved.