| Package | Description |
|---|---|
| com.landawn.abacus.util | |
| com.landawn.abacus.util.function |
| Modifier and Type | Method and Description |
|---|---|
<E extends Exception> |
u.OptionalLong.ifPresent(Throwables.LongConsumer<E> action) |
<E extends Exception,E2 extends Exception> |
u.OptionalLong.ifPresentOrElse(Throwables.LongConsumer<E> action,
Throwables.Runnable<E2> emptyAction)
If present or else.
|
static void |
N.runUninterruptibly(long timeoutInMillis,
Throwables.LongConsumer<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. |
| Modifier and Type | Interface and Description |
|---|---|
interface |
LongConsumer
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.