| Package | Description |
|---|---|
| com.landawn.abacus.util | |
| com.landawn.abacus.util.function |
| Modifier and Type | Method and Description |
|---|---|
static <R,E extends Throwable> |
Fn.Fnn.c2r(Throwables.Callable<R,E> callable) |
static <E extends Exception> |
Fn.Fnn.emptyAction() |
static <E extends Throwable> |
Fn.Fnn.jr2r(Runnable runnable) |
static <E extends Throwable> |
Fn.Fnn.r(Throwables.Runnable<E> runnable) |
static <E extends Throwable> |
Fn.Fnn.rr(Runnable runnable) |
static <E extends Throwable> |
Fn.Fnn.runnable(Throwables.Runnable<E> runnable)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static <E extends Exception> |
N.forEach(int startInclusive,
int endExclusive,
int step,
Throwables.Runnable<E> action) |
static <E extends Exception> |
N.forEach(int startInclusive,
int endExclusive,
Throwables.Runnable<E> action) |
<E2 extends Exception,E3 extends Exception> |
ExceptionalStream.forEach(Throwables.Consumer<? super T,? extends E2> action,
Throwables.Runnable<? extends E3> onComplete) |
<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 <E1 extends Exception,E2 extends Exception> |
N.ifOrElse(boolean b,
Throwables.Runnable<E1> actionForTrue,
Throwables.Runnable<E2> actionForFalse)
If or else.
|
static <E1 extends Exception,E2 extends Exception> |
N.ifOrElse(boolean b,
Throwables.Runnable<E1> actionForTrue,
Throwables.Runnable<E2> actionForFalse)
If or else.
|
<E extends Exception,E2 extends Exception> |
u.OptionalBoolean.ifPresentOrElse(Throwables.BooleanConsumer<E> action,
Throwables.Runnable<E2> emptyAction)
If present or else.
|
<E extends Exception,E2 extends Exception> |
u.OptionalByte.ifPresentOrElse(Throwables.ByteConsumer<E> action,
Throwables.Runnable<E2> emptyAction)
If present or else.
|
<E extends Exception,E2 extends Exception> |
u.OptionalChar.ifPresentOrElse(Throwables.CharConsumer<E> action,
Throwables.Runnable<E2> emptyAction)
If present or else.
|
<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.
|
<E extends Exception,E2 extends Exception> |
u.OptionalDouble.ifPresentOrElse(Throwables.DoubleConsumer<E> action,
Throwables.Runnable<E2> emptyAction)
If present or else.
|
<E extends Exception,E2 extends Exception> |
u.OptionalFloat.ifPresentOrElse(Throwables.FloatConsumer<E> action,
Throwables.Runnable<E2> emptyAction)
If present or else.
|
<E extends Exception,E2 extends Exception> |
u.OptionalInt.ifPresentOrElse(Throwables.IntConsumer<E> action,
Throwables.Runnable<E2> emptyAction)
If present or else.
|
<E extends Exception,E2 extends Exception> |
u.OptionalLong.ifPresentOrElse(Throwables.LongConsumer<E> action,
Throwables.Runnable<E2> emptyAction)
If present or else.
|
<E extends Exception,E2 extends Exception> |
u.OptionalShort.ifPresentOrElse(Throwables.ShortConsumer<E> action,
Throwables.Runnable<E2> emptyAction)
If present or else.
|
ExceptionalStream<T,E> |
ExceptionalStream.onClose(Throwables.Runnable<? extends E> closeHandler) |
<E extends Throwable> |
If.OrElse.orElse(Throwables.Runnable<E> cmd) |
static <E extends Throwable> |
Fn.Fnn.r(Throwables.Runnable<E> runnable) |
static <E extends Throwable> |
Fn.Fnn.r2c(Throwables.Runnable<E> runnable) |
static <R,E extends Throwable> |
Fn.Fnn.r2c(Throwables.Runnable<E> runnable,
R valueToReturn) |
static <E extends Throwable> |
Fn.Fnn.r2jr(Throwables.Runnable<E> runnable) |
static <E extends Exception> |
Fn.rr(Throwables.Runnable<E> runnbale) |
static Profiler.MultiLoopsStatistics |
Profiler.run(int threadNum,
int loopNum,
int roundNum,
String label,
Throwables.Runnable<? extends Exception> command) |
static Profiler.MultiLoopsStatistics |
Profiler.run(int threadNum,
int loopNum,
int roundNum,
Throwables.Runnable<? extends Exception> command) |
static Profiler.MultiLoopsStatistics |
Profiler.run(int threadNum,
long threadDelay,
int loopNum,
long loopDelay,
int roundNum,
String label,
Throwables.Runnable<? extends Exception> command) |
void |
Retry.run(Throwables.Runnable<? extends Exception> cmd) |
static void |
Try.run(Throwables.Runnable<? extends Exception> cmd) |
static void |
Try.run(Throwables.Runnable<? extends Exception> cmd,
Consumer<? super Exception> actionOnError) |
static void |
Throwables.run(Throwables.Runnable<? extends Throwable> cmd) |
static void |
Throwables.run(Throwables.Runnable<? extends Throwable> cmd,
Consumer<? super Throwable> actionOnError) |
static <E extends Throwable> |
Fn.Fnn.runnable(Throwables.Runnable<E> runnable)
Deprecated.
|
static void |
N.runUninterruptibly(Throwables.Runnable<InterruptedException> cmd)
Note: Copied from Google Guava under Apache License v2.0
If a thread is interrupted during such a call, the call continues to block until the result is available or the timeout elapses, and only then re-interrupts the thread. |
<E extends Throwable> |
If.then(Throwables.Runnable<E> cmd) |
| Modifier and Type | Interface and Description |
|---|---|
interface |
Runnable |
Copyright © 2021. All rights reserved.