Class Try.WithResources6<T1 extends AutoCloseable, T2 extends AutoCloseable, T3 extends AutoCloseable, T4 extends AutoCloseable, T5 extends AutoCloseable, T6 extends AutoCloseable>
java.lang.Object
io.vavr.control.Try.WithResources6<T1,T2,T3,T4,T5,T6>
- Type Parameters:
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.
public static final class Try.WithResources6<T1 extends AutoCloseable, T2 extends AutoCloseable, T3 extends AutoCloseable, T4 extends AutoCloseable, T5 extends AutoCloseable, T6 extends AutoCloseable>
extends Object
A
Try-with-resources builder that operates on six AutoCloseable resources.- Author:
- Daniel Dietrich
-
Method Summary
-
Method Details
-
of
public <R> Try<R> of(CheckedFunction6<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ? super T6, ? extends R> f) Wraps the result of a computation that may fail in aTry.- Type Parameters:
R- Result type of the computation.- Parameters:
f- A computation that takes sixAutoClosableresources.- Returns:
- A new
Tryinstance.
-