| Package | Description |
|---|---|
| com.landawn.abacus | |
| com.landawn.abacus.util | |
| com.landawn.abacus.util.function |
| Modifier and Type | Method and Description |
|---|---|
<E extends Exception> |
DataSet.accept(Throwables.Consumer<? super DataSet,E> action) |
<E extends Exception> |
DataSet.forEach(Collection<String> columnNames,
int fromRowIndex,
int toRowIndex,
Throwables.Consumer<? super NoCachingNoUpdating.DisposableObjArray,E> action)
Performs the given action for each row of the
DataSet
until all rows have been processed or the action throws an
exception. |
<E extends Exception> |
DataSet.forEach(Collection<String> columnNames,
Throwables.Consumer<? super NoCachingNoUpdating.DisposableObjArray,E> action)
Performs the given action for each row of the
DataSet
until all rows have been processed or the action throws an
exception. |
<E extends Exception> |
DataSet.forEach(int fromRowIndex,
int toRowIndex,
Throwables.Consumer<? super NoCachingNoUpdating.DisposableObjArray,E> action)
Performs the given action for each row of the
DataSet
until all rows have been processed or the action throws an
exception. |
<E extends Exception> |
DataSet.forEach(Throwables.Consumer<? super NoCachingNoUpdating.DisposableObjArray,E> action)
Performs the given action for each row of the
DataSet
until all rows have been processed or the action throws an
exception. |
| Modifier and Type | Method and Description |
|---|---|
static <K,V,E extends Throwable> |
Fn.Fnn.acceptByKey(Throwables.Consumer<? super K,E> consumer) |
static <K,V,E extends Throwable> |
Fn.Fnn.acceptByValue(Throwables.Consumer<? super V,E> consumer) |
static <A,B,T,E extends Throwable> |
Fn.Fnn.c(A a,
B b,
Throwables.TriConsumer<A,B,T,E> triConsumer) |
static <A,T,E extends Throwable> |
Fn.Fnn.c(A a,
Throwables.BiConsumer<A,T,E> biConsumer) |
static <T,E extends Throwable> |
Fn.Fnn.c(Throwables.Consumer<T,E> predicate) |
static <A,T,E extends Throwable> |
Fn.Fnn.cc(A a,
BiConsumer<A,T> biConsumer) |
static <A,B,T,E extends Throwable> |
Fn.Fnn.cc(A a,
B b,
TriConsumer<A,B,T> triConsumer) |
static <T,E extends Throwable> |
Fn.Fnn.cc(Consumer<T> consumer) |
static <T extends AutoCloseable> |
Fn.Fnn.close() |
static <T extends AutoCloseable,E extends Exception> |
Fn.Fnn.closeQuietly() |
static <T,E extends Exception> |
Fn.Fnn.doNothing() |
static <K,V,E extends Exception> |
Fn.Entries.ec(Throwables.BiConsumer<? super K,? super V,E> c) |
static <T,R,E extends Throwable> |
Fn.Fnn.f2c(Throwables.Function<T,R,E> func) |
static <T,E extends Exception> |
Fn.Fnn.println() |
static <A,T,E extends Throwable> |
Fn.Fnn.sc(Object mutex,
A a,
Throwables.BiConsumer<A,T,E> biConsumer)
Synchronized
Consumer. |
static <T,E extends Throwable> |
Fn.Fnn.sc(Object mutex,
Throwables.Consumer<T,E> consumer)
Synchronized
Consumer. |
static <T,E extends Exception> |
Fn.Fnn.sleep(long millis) |
static <T,E extends Exception> |
Fn.Fnn.sleepUninterruptibly(long millis) |
static <T> Throwables.Consumer<T,Exception> |
Fn.Fnn.throwException(String errorMessage) |
static <T,E extends Exception> |
Fn.Fnn.throwException(Supplier<? extends E> excpetionSupplier) |
static <T> Throwables.Consumer<T,IOException> |
Fn.Fnn.throwIOException(String errorMessage) |
static <T> Throwables.Consumer<T,RuntimeException> |
Fn.Fnn.throwRuntimeException(String errorMessage) |
| Modifier and Type | Method and Description |
|---|---|
<X extends Exception> |
Multimap.accept(Throwables.Consumer<? super Multimap<K,E,V>,X> action) |
<E extends Exception> |
Multiset.accept(Throwables.Consumer<? super Multiset<T>,E> action) |
<E extends Exception> |
Pair.accept(Throwables.Consumer<? super Pair<L,R>,E> action) |
<E extends Exception> |
SQLBuilder.accept(Throwables.Consumer<? super SQLBuilder.SP,E> consumer) |
<E extends Exception> |
Tuple.accept(Throwables.Consumer<? super TP,E> action) |
<E extends Exception> |
Triple.accept(Throwables.Consumer<? super Triple<L,M,R>,E> action) |
static <K,V,E extends Throwable> |
Fn.Fnn.acceptByKey(Throwables.Consumer<? super K,E> consumer) |
static <K,V,E extends Throwable> |
Fn.Fnn.acceptByValue(Throwables.Consumer<? super V,E> consumer) |
If.OrElse |
ExceptionalStream.acceptIfNotEmpty(Throwables.Consumer<? super ExceptionalStream<T,E>,? extends E> action) |
<E extends Exception> |
Multiset.acceptIfNotEmpty(Throwables.Consumer<? super Multiset<T>,E> action)
Accept if not empty.
|
static <T,E extends Throwable> |
Fn.Fnn.c(Throwables.Consumer<T,E> predicate) |
static <T,E extends Throwable> |
Fn.Fnn.c2f(Throwables.Consumer<T,E> consumer) |
static <T,R,E extends Throwable> |
Fn.Fnn.c2f(Throwables.Consumer<T,E> consumer,
R valueToReturn) |
static <T,E extends Exception> |
Fn.cc(Throwables.Consumer<T,E> consumer) |
ExceptionalStream<T,E> |
ExceptionalStream.dropWhile(Throwables.Predicate<? super T,? extends E> predicate,
Throwables.Consumer<? super T,? extends E> actionOnDroppedItem) |
ExceptionalStream<T,E> |
ExceptionalStream.filter(Throwables.Predicate<? super T,? extends E> predicate,
Throwables.Consumer<? super T,? extends E> actionOnDroppedItem) |
<X extends Exception> |
Multimap.flatForEachValue(Throwables.Consumer<? super E,X> action)
Flat for each value.
|
static <T,E extends Exception> |
N.forEach(Collection<? extends T> c,
int fromIndex,
int toIndex,
Throwables.Consumer<? super T,E> action)
Mostly it's designed for one-step operation to complete the operation in one step.
|
static <T,E extends Exception> |
N.forEach(Collection<? extends T> c,
Throwables.Consumer<? super T,E> action) |
static <T,E extends Exception> |
N.forEach(Iterator<? extends T> iter,
Throwables.Consumer<? super T,E> action) |
static <K,V,E extends Exception> |
Maps.forEach(Map<K,V> map,
Throwables.Consumer<? super Map.Entry<K,V>,E> action) |
static <K,V,E extends Exception> |
N.forEach(Map<K,V> map,
Throwables.Consumer<? super Map.Entry<K,V>,E> action) |
static <T,E extends Exception> |
N.forEach(T[] a,
int fromIndex,
int toIndex,
Throwables.Consumer<? super T,E> action) |
static <T,E extends Exception> |
N.forEach(T[] a,
Throwables.Consumer<? super T,E> action) |
<E extends Exception> |
Pair.forEach(Throwables.Consumer<?,E> comsumer) |
<E extends Exception> |
Triple.forEach(Throwables.Consumer<?,E> comsumer) |
abstract <E extends Exception> |
Tuple.forEach(Throwables.Consumer<?,E> consumer) |
<E extends Exception> |
Tuple.Tuple1.forEach(Throwables.Consumer<?,E> consumer) |
<E extends Exception> |
Tuple.Tuple2.forEach(Throwables.Consumer<?,E> consumer) |
<E extends Exception> |
Tuple.Tuple3.forEach(Throwables.Consumer<?,E> consumer) |
<E extends Exception> |
Tuple.Tuple4.forEach(Throwables.Consumer<?,E> consumer) |
<E extends Exception> |
Tuple.Tuple5.forEach(Throwables.Consumer<?,E> consumer) |
<E extends Exception> |
Tuple.Tuple6.forEach(Throwables.Consumer<?,E> consumer) |
<E extends Exception> |
Tuple.Tuple7.forEach(Throwables.Consumer<?,E> consumer) |
<E extends Exception> |
Tuple.Tuple8.forEach(Throwables.Consumer<?,E> consumer) |
<E extends Exception> |
Tuple.Tuple9.forEach(Throwables.Consumer<?,E> consumer) |
<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) |
<E extends Exception> |
Multiset.forEach(Throwables.Consumer<? super T,E> action) |
<E extends Exception> |
ImmutableArray.forEach(Throwables.Consumer<T,E> consumer) |
<X extends Exception> |
Multimap.forEachKey(Throwables.Consumer<? super K,X> action)
For each key.
|
static <T,E extends Exception> |
N.forEachNonNull(Collection<T> c,
Throwables.Consumer<? super T,E> action)
For each non null.
|
static <T,E extends Exception> |
N.forEachNonNull(T[] a,
Throwables.Consumer<? super T,E> action)
For each non null.
|
<E extends Exception> |
LineIterator.foreachRemaining(Throwables.Consumer<? super String,E> action) |
<E extends Exception> |
ObjIterator.foreachRemaining(Throwables.Consumer<? super T,E> action) |
void |
ExceptionalStream.forEachToBreak(MutableBoolean flagToBreak,
Throwables.Consumer<? super T,E> action) |
<X extends Exception> |
Multimap.forEachValue(Throwables.Consumer<? super V,X> action)
For each value.
|
<E2 extends Throwable> |
Result.ifFailure(Throwables.Consumer<? super E,E2> actionOnFailure) |
<E2 extends Throwable,E3 extends Throwable> |
Result.ifFailureOrElse(Throwables.Consumer<? super E,E2> actionOnFailure,
Throwables.Consumer<? super T,E3> actionOnSuccess)
If failure or else.
|
<E2 extends Throwable,E3 extends Throwable> |
Result.ifFailureOrElse(Throwables.Consumer<? super E,E2> actionOnFailure,
Throwables.Consumer<? super T,E3> actionOnSuccess)
If failure or else.
|
<E extends Exception> |
u.Nullable.ifNotNull(Throwables.Consumer<? super T,E> action)
If not null.
|
<E extends Exception,E2 extends Exception> |
u.Nullable.ifNotNullOrElse(Throwables.Consumer<? super T,E> action,
Throwables.Runnable<E2> emptyAction)
If not null or else.
|
static <T,E1 extends Exception,E2 extends Exception> |
N.ifOrElse(boolean b,
T init,
Throwables.Consumer<? super T,E1> actionForTrue,
Throwables.Consumer<? super T,E2> actionForFalse)
If or else.
|
static <T,E1 extends Exception,E2 extends Exception> |
N.ifOrElse(boolean b,
T init,
Throwables.Consumer<? super T,E1> actionForTrue,
Throwables.Consumer<? super T,E2> actionForFalse)
If or else.
|
<E extends Exception> |
u.Optional.ifPresent(Throwables.Consumer<? super T,E> action) |
<E extends Exception> |
u.Nullable.ifPresent(Throwables.Consumer<? super T,E> action) |
<E extends Exception,E2 extends Exception> |
u.Optional.ifPresentOrElse(Throwables.Consumer<? super T,E> action,
Throwables.Runnable<E2> emptyAction)
If present or else.
|
<E extends Exception,E2 extends Exception> |
u.Nullable.ifPresentOrElse(Throwables.Consumer<? super T,E> action,
Throwables.Runnable<E2> emptyAction)
If present or else.
|
<E2 extends Throwable> |
Result.ifSuccess(Throwables.Consumer<? super T,E2> actionOnSuccess) |
<E2 extends Throwable,E3 extends Throwable> |
Result.ifSuccessOrElse(Throwables.Consumer<? super T,E2> actionOnSuccess,
Throwables.Consumer<? super E,E3> actionOnFailure)
If success or else.
|
<E2 extends Throwable,E3 extends Throwable> |
Result.ifSuccessOrElse(Throwables.Consumer<? super T,E2> actionOnSuccess,
Throwables.Consumer<? super E,E3> actionOnFailure)
If success or else.
|
ExceptionalStream<T,E> |
ExceptionalStream.onEach(Throwables.Consumer<? super T,? extends E> action) |
<U,E extends Throwable> |
If.OrElse.orElse(U init,
Throwables.Consumer<? super U,E> action) |
ExceptionalStream<T,E> |
ExceptionalStream.peek(Throwables.Consumer<? super T,? extends E> action) |
ExceptionalStream<T,E> |
ExceptionalStream.peekFirst(Throwables.Consumer<? super T,? extends E> action) |
ExceptionalStream<T,E> |
ExceptionalStream.peekLast(Throwables.Consumer<? super T,? extends E> action) |
void |
Try.run(Throwables.Consumer<? super T,? extends Exception> cmd) |
void |
Try.run(Throwables.Consumer<? super T,? extends Exception> cmd,
Consumer<? super Exception> actionOnError) |
static <T,E extends Throwable> |
Fn.Fnn.sc(Object mutex,
Throwables.Consumer<T,E> consumer)
Synchronized
Consumer. |
<U,E extends Throwable> |
If.then(U init,
Throwables.Consumer<? super U,E> action) |
| Modifier and Type | Interface and Description |
|---|---|
interface |
Consumer<T>
Refer to JDK API documentation at: https://docs.oracle.com/javase/8/docs/api/java/util/function/package-summary.html
|
Copyright © 2021. All rights reserved.