T1
- Type of the 1st resource.T2
- Type of the 2nd resource.T3
- Type of the 3rd resource.T4
- Type of the 4th resource.T5
- Type of the 5th resource.public static final class Try.WithResources5<T1 extends AutoCloseable,T2 extends AutoCloseable,T3 extends AutoCloseable,T4 extends AutoCloseable,T5 extends AutoCloseable> extends Object
Try
-with-resources builder that operates on five AutoCloseable
resources.Modifier and Type | Method and Description |
---|---|
<R> Try<R> |
of(CheckedFunction5<? super T1,? super T2,? super T3,? super T4,? super T5,? extends R> f)
Wraps the result of a computation that may fail in a
Try . |
public <R> Try<R> of(CheckedFunction5<? super T1,? super T2,? super T3,? super T4,? super T5,? extends R> f)
Try
.R
- Result type of the computation.f
- A computation that takes five AutoClosable
resources.Try
instance.Copyright © 2021. All Rights Reserved.