Package aQute.lib.exceptions
Interface PredicateWithException<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 PredicateWithException<T>
Deprecated.Predicate interface that allows exceptions.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description static <T> java.util.function.Predicate<T>
asPredicate(PredicateWithException<T> unchecked)
Deprecated.static <T> java.util.function.Predicate<T>
asPredicateOrElse(PredicateWithException<T> unchecked, boolean orElse)
Deprecated.static <T> java.util.function.Predicate<T>
asPredicateOrElseGet(PredicateWithException<T> unchecked, java.util.function.BooleanSupplier orElseGet)
Deprecated.default java.util.function.Predicate<T>
orElse(boolean orElse)
Deprecated.default java.util.function.Predicate<T>
orElseGet(java.util.function.BooleanSupplier orElseGet)
Deprecated.default java.util.function.Predicate<T>
orElseThrow()
Deprecated.boolean
test(T t)
Deprecated.
-
-
-
Method Detail
-
test
boolean test(T t) throws java.lang.Exception
Deprecated.- Throws:
java.lang.Exception
-
orElseThrow
default java.util.function.Predicate<T> orElseThrow()
Deprecated.
-
orElse
default java.util.function.Predicate<T> orElse(boolean orElse)
Deprecated.
-
orElseGet
default java.util.function.Predicate<T> orElseGet(java.util.function.BooleanSupplier orElseGet)
Deprecated.
-
asPredicate
static <T> java.util.function.Predicate<T> asPredicate(PredicateWithException<T> unchecked)
Deprecated.
-
asPredicateOrElse
static <T> java.util.function.Predicate<T> asPredicateOrElse(PredicateWithException<T> unchecked, boolean orElse)
Deprecated.
-
asPredicateOrElseGet
static <T> java.util.function.Predicate<T> asPredicateOrElseGet(PredicateWithException<T> unchecked, java.util.function.BooleanSupplier orElseGet)
Deprecated.
-
-