Package org.ldaptive.handler
Interface ResultPredicate
-
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface ResultPredicate extends Predicate<Result>
Marker interface for a throw predicate.
-
-
Field Summary
Fields Modifier and Type Field Description static ResultPredicate
NOT_SUCCESS
Predicate that throws if the result code is notResultCode.SUCCESS
.
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default void
testAndThrow(Result result)
Test a result and throw if the test succeeds.
-
-
-
Field Detail
-
NOT_SUCCESS
static final ResultPredicate NOT_SUCCESS
Predicate that throws if the result code is notResultCode.SUCCESS
.
-
-
Method Detail
-
testAndThrow
default void testAndThrow(Result result) throws LdapException
Test a result and throw if the test succeeds.- Parameters:
result
- input argument- Throws:
LdapException
- ifPredicate.test(Object)
returns true
-
-