Package org.cryptomator.cryptofs.common
Class FinallyUtil
- java.lang.Object
-
- org.cryptomator.cryptofs.common.FinallyUtil
-
@Singleton public class FinallyUtil extends Object
-
-
Constructor Summary
Constructors Constructor Description FinallyUtil()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <E extends Exception>
voidguaranteeInvocationOf(Iterable<RunnableThrowingException<? extends E>> tasks)<E extends Exception>
voidguaranteeInvocationOf(Iterator<RunnableThrowingException<E>> tasks)<E extends Exception>
voidguaranteeInvocationOf(Stream<RunnableThrowingException<? extends E>> tasks)<E extends Exception>
voidguaranteeInvocationOf(RunnableThrowingException<? extends E>... tasks)
-
-
-
Method Detail
-
guaranteeInvocationOf
public <E extends Exception> void guaranteeInvocationOf(RunnableThrowingException<? extends E>... tasks) throws E extends Exception
- Throws:
E extends Exception
-
guaranteeInvocationOf
public <E extends Exception> void guaranteeInvocationOf(Iterable<RunnableThrowingException<? extends E>> tasks) throws E extends Exception
- Throws:
E extends Exception
-
guaranteeInvocationOf
public <E extends Exception> void guaranteeInvocationOf(Stream<RunnableThrowingException<? extends E>> tasks) throws E extends Exception
- Throws:
E extends Exception
-
guaranteeInvocationOf
public <E extends Exception> void guaranteeInvocationOf(Iterator<RunnableThrowingException<E>> tasks) throws E extends Exception
- Throws:
E extends Exception
-
-