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.T6 - Type of the 6th resource.T7 - Type of the 7th resource.T8 - Type of the 8th resource.public static final class Try.WithResources8<T1 extends java.lang.AutoCloseable,T2 extends java.lang.AutoCloseable,T3 extends java.lang.AutoCloseable,T4 extends java.lang.AutoCloseable,T5 extends java.lang.AutoCloseable,T6 extends java.lang.AutoCloseable,T7 extends java.lang.AutoCloseable,T8 extends java.lang.AutoCloseable>
extends java.lang.Object
Try-with-resources builder that operates on eight AutoCloseable resources.| Modifier and Type | Method and Description |
|---|---|
<R> Try<R> |
of(CheckedFunction8<? super T1,? super T2,? super T3,? super T4,? super T5,? super T6,? super T7,? super T8,? extends R> f)
Wraps the result of a computation that may fail in a
Try. |
public <R> Try<R> of(CheckedFunction8<? super T1,? super T2,? super T3,? super T4,? super T5,? super T6,? super T7,? super T8,? extends R> f)
Try.R - Result type of the computation.f - A computation that takes eight AutoClosable resources.Try instance.