| Package | Description |
|---|---|
| com.landawn.abacus.util |
| Modifier and Type | Method and Description |
|---|---|
<E2 extends Exception> |
ExceptionalStream.acceptIfNotEmpty(Throwables.Consumer<? super ExceptionalStream<T,E>,E2> action) |
<E2 extends Exception> |
ExceptionalStream.allMatch(Throwables.Predicate<? super T,E2> predicate) |
<E2 extends Exception> |
ExceptionalStream.anyMatch(Throwables.Predicate<? super T,E2> predicate) |
<R,E2 extends Exception> |
ExceptionalStream.applyIfNotEmpty(Throwables.Function<? super ExceptionalStream<T,E>,R,E2> func) |
<E2 extends Exception> |
ExceptionalStream.averageDouble(Throwables.ToDoubleFunction<? super T,E2> func) |
<E2 extends Exception> |
ExceptionalStream.averageInt(Throwables.ToIntFunction<? super T,E2> func) |
<E2 extends Exception> |
ExceptionalStream.averageLong(Throwables.ToLongFunction<? super T,E2> func) |
void |
ExceptionalStream.close() |
<R,A> R |
ExceptionalStream.collect(Collector<? super T,A,R> collector) |
<R,A> R |
ExceptionalStream.collect(Collector<? super T,A,R> collector) |
<R,E2 extends Exception,E3 extends Exception> |
ExceptionalStream.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> |
ExceptionalStream.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> |
ExceptionalStream.collectAndThen(Collector<? super T,A,R> collector,
Throwables.Function<? super R,? extends RR,E2> func)
Collect and then.
|
<R,RR,A,E2 extends Exception> |
ExceptionalStream.collectAndThen(Collector<? super T,A,R> collector,
Throwables.Function<? super R,? extends RR,E2> func)
Collect and then.
|
boolean |
ExceptionalStream.containsAll(Collection<? extends T> c) |
boolean |
ExceptionalStream.containsAll(T... a) |
boolean |
ExceptionalStream.containsAny(Collection<? extends T> c) |
boolean |
ExceptionalStream.containsAny(T... a) |
long |
ExceptionalStream.count() |
u.Optional<T> |
ExceptionalStream.elementAt(long position) |
<E2 extends Exception> |
ExceptionalStream.findAny(Throwables.Predicate<? super T,E2> predicate)
Same as
findFirst(Throwables.Predicate). |
<E2 extends Exception> |
ExceptionalStream.findFirst(Throwables.Predicate<? super T,E2> predicate) |
<E2 extends Exception> |
ExceptionalStream.findLast(Throwables.Predicate<? super T,E2> predicate)
Consider using:
stream.reversed().findFirst(predicate) for better performance if possible. |
u.Optional<T> |
ExceptionalStream.first() |
<E2 extends Exception> |
ExceptionalStream.forEach(Throwables.Consumer<? super T,E2> action) |
<E2 extends Exception,E3 extends Exception> |
ExceptionalStream.forEach(Throwables.Consumer<? super T,E2> action,
Throwables.Runnable<E3> onComplete) |
<U,E2 extends Exception,E3 extends Exception> |
ExceptionalStream.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> |
ExceptionalStream.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> |
ExceptionalStream.forEachIndexed(Throwables.IndexedConsumer<? super T,E2> action) |
<E2 extends Exception> |
ExceptionalStream.forEachPair(Throwables.BiConsumer<? super T,? super T,E2> action)
For each pair.
|
<E2 extends Exception> |
ExceptionalStream.forEachPair(Throwables.BiConsumer<? super T,? super T,E2> action,
int increment)
For each pair.
|
<E2 extends Exception> |
ExceptionalStream.forEachToBreak(MutableBoolean flagToBreak,
Throwables.Consumer<? super T,E2> action) |
<E2 extends Exception> |
ExceptionalStream.forEachToBreak(Throwables.BiConsumer<? super T,MutableBoolean,E2> action) |
<E2 extends Exception> |
ExceptionalStream.forEachTriple(Throwables.TriConsumer<? super T,? super T,? super T,E2> action)
For each triple.
|
<E2 extends Exception> |
ExceptionalStream.forEachTriple(Throwables.TriConsumer<? super T,? super T,? super T,E2> action,
int increment)
For each triple.
|
<K,E2 extends Exception> |
ExceptionalStream.groupTo(Throwables.Function<? super T,? extends K,E2> keyMapper) |
<K,M extends Map<K,List<T>>,E2 extends Exception> |
ExceptionalStream.groupTo(Throwables.Function<? super T,? extends K,E2> keyMapper,
Supplier<? extends M> mapFactory) |
<K,V,E2 extends Exception,E3 extends Exception> |
ExceptionalStream.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> |
ExceptionalStream.groupTo(Throwables.Function<? super T,? extends K,E2> keyMapper,
Throwables.Function<? super T,? extends V,E3> valueMapper,
Supplier<? extends M> mapFactory) |
boolean |
ExceptionalStream.hasDuplicates() |
String |
ExceptionalStream.join(CharSequence delimiter) |
String |
ExceptionalStream.join(CharSequence delimiter,
CharSequence prefix,
CharSequence suffix) |
u.Optional<T> |
ExceptionalStream.kthLargest(int k,
Comparator<? super T> comparator) |
u.Optional<T> |
ExceptionalStream.last() |
u.Optional<T> |
ExceptionalStream.max(Comparator<? super T> comparator) |
u.Optional<T> |
ExceptionalStream.maxBy(Function<? super T,? extends Comparable> keyMapper) |
u.Optional<T> |
ExceptionalStream.min(Comparator<? super T> comparator) |
u.Optional<T> |
ExceptionalStream.minBy(Function<? super T,? extends Comparable> keyMapper) |
<E2 extends Exception> |
ExceptionalStream.nMatch(long atLeast,
long atMost,
Throwables.Predicate<? super T,E2> predicate) |
<E2 extends Exception> |
ExceptionalStream.noneMatch(Throwables.Predicate<? super T,E2> predicate) |
u.Optional<T> |
ExceptionalStream.onlyOne() |
u.Optional<Map<Percentage,T>> |
ExceptionalStream.percentiles(Comparator<? super T> comparator) |
void |
ExceptionalStream.println() |
<E2 extends Exception> |
ExceptionalStream.reduce(Throwables.BinaryOperator<T,E2> accumulator) |
<U,E2 extends Exception> |
ExceptionalStream.reduce(U identity,
Throwables.BiFunction<U,? super T,U,E2> accumulator) |
<E2 extends Exception> |
ExceptionalStream.sumDouble(Throwables.ToDoubleFunction<? super T,E2> func) |
<E2 extends Exception> |
ExceptionalStream.sumInt(Throwables.ToIntFunction<? super T,E2> func) |
<E2 extends Exception> |
ExceptionalStream.sumLong(Throwables.ToLongFunction<? super T,E2> func) |
Object[] |
ExceptionalStream.toArray() |
<A> A[] |
ExceptionalStream.toArray(IntFunction<A[]> generator) |
<C extends Collection<T>> |
ExceptionalStream.toCollection(Supplier<? extends C> supplier) |
<R,CC extends Collection<T>,E2 extends Exception> |
ExceptionalStream.toCollectionAndThen(Supplier<? extends CC> supplier,
Throwables.Function<? super CC,R,E2> func) |
DataSet |
ExceptionalStream.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 |
ExceptionalStream.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> |
ExceptionalStream.toImmutableList() |
ImmutableSet<T> |
ExceptionalStream.toImmutableSet() |
List<T> |
ExceptionalStream.toList() |
<R,E2 extends Exception> |
ExceptionalStream.toListAndThen(Throwables.Function<? super List<T>,R,E2> func) |
<K,A,D,E2 extends Exception> |
ExceptionalStream.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> |
ExceptionalStream.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> |
ExceptionalStream.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> |
ExceptionalStream.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> |
ExceptionalStream.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> |
ExceptionalStream.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> |
ExceptionalStream.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> |
ExceptionalStream.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> |
ExceptionalStream.toMultimap(Throwables.Function<? super T,? extends K,E2> keyMapper) |
<K,V extends Collection<T>,M extends Multimap<K,T,V>,E2 extends Exception> |
ExceptionalStream.toMultimap(Throwables.Function<? super T,? extends K,E2> keyMapper,
Supplier<? extends M> mapFactory) |
<K,V,E2 extends Exception,E3 extends Exception> |
ExceptionalStream.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> |
ExceptionalStream.toMultimap(Throwables.Function<? super T,? extends K,E2> keyMapper,
Throwables.Function<? super T,? extends V,E3> valueMapper,
Supplier<? extends M> mapFactory) |
Multiset<T> |
ExceptionalStream.toMultiset() |
Multiset<T> |
ExceptionalStream.toMultiset(Supplier<? extends Multiset<T>> supplier) |
Set<T> |
ExceptionalStream.toSet() |
<R,E2 extends Exception> |
ExceptionalStream.toSetAndThen(Throwables.Function<? super Set<T>,R,E2> func) |
Copyright © 2021. All rights reserved.