| Package | Description |
|---|---|
| com.landawn.abacus.util |
| Modifier and Type | Method and Description |
|---|---|
If.OrElse |
ExceptionalStream.acceptIfNotEmpty(Throwables.Consumer<? super ExceptionalStream<T,E>,? extends E> action) |
boolean |
ExceptionalStream.allMatch(Throwables.Predicate<? super T,? extends E> predicate) |
boolean |
ExceptionalStream.anyMatch(Throwables.Predicate<? super T,? extends E> predicate) |
<R> u.Optional<R> |
ExceptionalStream.applyIfNotEmpty(Throwables.Function<? super ExceptionalStream<T,E>,R,? extends E> func) |
u.OptionalDouble |
ExceptionalStream.averageDouble(Throwables.ToDoubleFunction<? super T,? extends E> func) |
u.OptionalDouble |
ExceptionalStream.averageInt(Throwables.ToIntFunction<? super T,? extends E> func) |
u.OptionalDouble |
ExceptionalStream.averageLong(Throwables.ToLongFunction<? super T,? extends E> func) |
void |
ExceptionalStream.close() |
<R,A> R |
ExceptionalStream.collect(Collector<? super T,A,R> collector) |
<R,E2 extends Exception,E3 extends Exception> |
ExceptionalStream.collect(Throwables.Supplier<R,? extends E2> supplier,
Throwables.BiConsumer<? super R,? super T,? extends E3> accumulator) |
<R,RR,E2 extends Exception,E3 extends Exception,E4 extends Exception> |
ExceptionalStream.collect(Throwables.Supplier<R,? extends E2> supplier,
Throwables.BiConsumer<? super R,? super T,? extends E3> accumulator,
Throwables.Function<? super R,? extends RR,? extends E4> finisher) |
<R,RR,A,E2 extends Exception> |
ExceptionalStream.collectAndThen(Collector<? super T,A,R> collector,
Throwables.Function<? super R,? extends RR,? extends 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) |
u.Optional<T> |
ExceptionalStream.findAny(Throwables.Predicate<? super T,E> predicate) |
u.Optional<T> |
ExceptionalStream.findFirst(Throwables.Predicate<? super T,E> predicate) |
u.Optional<T> |
ExceptionalStream.findLast(Throwables.Predicate<? super T,E> 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,? extends E2> action) |
<E2 extends Exception,E3 extends Exception> |
ExceptionalStream.forEach(Throwables.Consumer<? super T,? extends E2> action,
Throwables.Runnable<? extends E3> onComplete) |
<U,E2 extends Exception,E3 extends Exception> |
ExceptionalStream.forEach(Throwables.Function<? super T,? extends Collection<? extends U>,? extends E2> flatMapper,
Throwables.BiConsumer<? super T,? super U,? extends E3> action) |
<T2,T3,E2 extends Exception,E3 extends Exception,E4 extends Exception> |
ExceptionalStream.forEach(Throwables.Function<? super T,? extends Collection<T2>,? extends E2> flatMapper,
Throwables.Function<? super T2,? extends Collection<T3>,? extends E3> flatMapper2,
Throwables.TriConsumer<? super T,? super T2,? super T3,? extends E4> action) |
<E2 extends Exception> |
ExceptionalStream.forEachIndexed(Throwables.IndexedConsumer<? super T,? extends E2> action) |
<E2 extends Exception> |
ExceptionalStream.forEachPair(Throwables.BiConsumer<? super T,? super T,? extends E2> action)
For each pair.
|
<E2 extends Exception> |
ExceptionalStream.forEachPair(Throwables.BiConsumer<? super T,? super T,? extends E2> action,
int increment)
For each pair.
|
void |
ExceptionalStream.forEachToBreak(MutableBoolean flagToBreak,
Throwables.Consumer<? super T,E> action) |
void |
ExceptionalStream.forEachToBreak(Throwables.BiConsumer<? super T,MutableBoolean,E> action) |
<E2 extends Exception> |
ExceptionalStream.forEachTriple(Throwables.TriConsumer<? super T,? super T,? super T,? extends E2> action)
For each triple.
|
<E2 extends Exception> |
ExceptionalStream.forEachTriple(Throwables.TriConsumer<? super T,? super T,? super T,? extends E2> action,
int increment)
For each triple.
|
<K> Map<K,List<T>> |
ExceptionalStream.groupTo(Throwables.Function<? super T,? extends K,? extends E> keyMapper) |
<K,M extends Map<K,List<T>>> |
ExceptionalStream.groupTo(Throwables.Function<? super T,? extends K,? extends E> keyMapper,
Supplier<? extends M> mapFactory) |
<K,V> Map<K,List<V>> |
ExceptionalStream.groupTo(Throwables.Function<? super T,? extends K,? extends E> keyMapper,
Throwables.Function<? super T,? extends V,? extends E> valueMapper) |
<K,V,M extends Map<K,List<V>>> |
ExceptionalStream.groupTo(Throwables.Function<? super T,? extends K,? extends E> keyMapper,
Throwables.Function<? super T,? extends V,? extends E> 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) |
boolean |
ExceptionalStream.nMatch(long atLeast,
long atMost,
Throwables.Predicate<? super T,? extends E> predicate) |
boolean |
ExceptionalStream.noneMatch(Throwables.Predicate<? super T,? extends E> 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,? extends E2> accumulator) |
<U,E2 extends Exception> |
ExceptionalStream.reduce(U identity,
Throwables.BiFunction<U,? super T,U,? extends E2> accumulator) |
u.OptionalDouble |
ExceptionalStream.sumDouble(Throwables.ToDoubleFunction<? super T,? extends E> func) |
u.OptionalLong |
ExceptionalStream.sumInt(Throwables.ToIntFunction<? super T,? extends E> func) |
u.OptionalLong |
ExceptionalStream.sumLong(Throwables.ToLongFunction<? super T,? extends E> 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>> |
ExceptionalStream.toCollectionAndThen(Supplier<? extends CC> supplier,
Throwables.Function<? super CC,R,E> 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> R |
ExceptionalStream.toListAndThen(Throwables.Function<? super List<T>,R,E> func) |
<K,A,D> Map<K,D> |
ExceptionalStream.toMap(Throwables.Function<? super T,? extends K,? extends E> keyMapper,
Collector<? super T,A,D> downstream) |
<K,A,D,M extends Map<K,D>> |
ExceptionalStream.toMap(Throwables.Function<? super T,? extends K,? extends E> keyMapper,
Collector<? super T,A,D> downstream,
Supplier<? extends M> mapFactory) |
<K,V> Map<K,V> |
ExceptionalStream.toMap(Throwables.Function<? super T,? extends K,? extends E> keyMapper,
Throwables.Function<? super T,? extends V,? extends E> valueMapper) |
<K,V,A,D> Map<K,D> |
ExceptionalStream.toMap(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,M extends Map<K,D>> |
ExceptionalStream.toMap(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 M> mapFactory) |
<K,V,M extends Map<K,V>> |
ExceptionalStream.toMap(Throwables.Function<? super T,? extends K,? extends E> keyMapper,
Throwables.Function<? super T,? extends V,? extends E> valueMapper,
Supplier<? extends M> mapFactory) |
<K,V> Map<K,V> |
ExceptionalStream.toMap(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,M extends Map<K,V>> |
ExceptionalStream.toMap(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 M> mapFactory) |
<K> ListMultimap<K,T> |
ExceptionalStream.toMultimap(Throwables.Function<? super T,? extends K,? extends E> keyMapper) |
<K,V extends Collection<T>,M extends Multimap<K,T,V>> |
ExceptionalStream.toMultimap(Throwables.Function<? super T,? extends K,? extends E> keyMapper,
Supplier<? extends M> mapFactory) |
<K,V> ListMultimap<K,V> |
ExceptionalStream.toMultimap(Throwables.Function<? super T,? extends K,? extends E> keyMapper,
Throwables.Function<? super T,? extends V,? extends E> valueMapper) |
<K,V,C extends Collection<V>,M extends Multimap<K,V,C>> |
ExceptionalStream.toMultimap(Throwables.Function<? super T,? extends K,? extends E> keyMapper,
Throwables.Function<? super T,? extends V,? extends E> valueMapper,
Supplier<? extends M> mapFactory) |
Multiset<T> |
ExceptionalStream.toMultiset() |
Multiset<T> |
ExceptionalStream.toMultiset(Supplier<? extends Multiset<T>> supplier) |
Set<T> |
ExceptionalStream.toSet() |
<R> R |
ExceptionalStream.toSetAndThen(Throwables.Function<? super Set<T>,R,E> func) |
Copyright © 2021. All rights reserved.