Package io.github.connellite.function
Interface UncheckedPredicate<T>
- All Superinterfaces:
Predicate<T>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Predicate that may throw; checked exceptions are rethrown via ReflectionUtil.propagate(Throwable).-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> UncheckedPredicate<T>of(UncheckedPredicate<T> predicate) Gives a throwing method reference this interface as its target type.default booleanDelegates touncheckedTest(T); checked exceptions are propagated.booleanuncheckedTest(T t) Same astest(T), but may throw.
-
Method Details
-
test
Delegates touncheckedTest(T); checked exceptions are propagated. -
uncheckedTest
Same astest(T), but may throw.- Throws:
Throwable
-
of
Gives a throwing method reference this interface as its target type. The same instance is returned;test(T)still propagates checked exceptions.
-