Package aQute.lib.exceptions
Interface ConsumerWithException<T>
-
- Type Parameters:
T
- the type of the argument
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@Deprecated @FunctionalInterface public interface ConsumerWithException<T>
Deprecated.Consumer interface that allows exceptions.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description void
accept(T t)
Deprecated.static <T> java.util.function.Consumer<T>
asConsumer(ConsumerWithException<T> unchecked)
Deprecated.static <T> java.util.function.Consumer<T>
asConsumerIgnoreException(ConsumerWithException<T> unchecked)
Deprecated.default java.util.function.Consumer<T>
ignoreException()
Deprecated.default java.util.function.Consumer<T>
orElseThrow()
Deprecated.
-
-
-
Method Detail
-
accept
void accept(T t) throws java.lang.Exception
Deprecated.- Throws:
java.lang.Exception
-
orElseThrow
default java.util.function.Consumer<T> orElseThrow()
Deprecated.
-
ignoreException
default java.util.function.Consumer<T> ignoreException()
Deprecated.
-
asConsumer
static <T> java.util.function.Consumer<T> asConsumer(ConsumerWithException<T> unchecked)
Deprecated.
-
asConsumerIgnoreException
static <T> java.util.function.Consumer<T> asConsumerIgnoreException(ConsumerWithException<T> unchecked)
Deprecated.
-
-