public final class TryWith extends Object
| Modifier and Type | Method and Description |
|---|---|
static <O extends AutoCloseable,I extends AutoCloseable,X extends Throwable> |
tryWith(O outer,
I inner,
ThrowingBiConsumer<O,I,X> consumer) |
static <O extends AutoCloseable,I extends AutoCloseable,T,X extends Throwable> |
tryWith(O outer,
I inner,
ThrowingBiFunction<O,I,T,X> function) |
static <R extends AutoCloseable,X extends Throwable> |
tryWith(R resource,
ThrowingConsumer<R,X> consumer) |
static <R extends AutoCloseable,T,X extends Throwable> |
tryWith(R resource,
ThrowingFunction<R,T,X> supplier) |
public static <O extends AutoCloseable,I extends AutoCloseable,X extends Throwable> void tryWith(@Nullable O outer, @Nullable I inner, ThrowingBiConsumer<O,I,X> consumer) throws X extends Throwable
X extends Throwablepublic static <R extends AutoCloseable,X extends Throwable> void tryWith(@Nullable R resource, ThrowingConsumer<R,X> consumer) throws X extends Throwable
X extends Throwablepublic static <O extends AutoCloseable,I extends AutoCloseable,T,X extends Throwable> T tryWith(@Nullable O outer, @Nullable I inner, ThrowingBiFunction<O,I,T,X> function) throws X extends Throwable
X extends Throwablepublic static <R extends AutoCloseable,T,X extends Throwable> T tryWith(@Nullable R resource, ThrowingFunction<R,T,X> supplier) throws X extends Throwable
X extends ThrowableCopyright © 2015–2017 Zalando SE. All rights reserved.