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.
Marker interface for a throw predicate.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ResultPredicatePredicate that throws if the result code is notResultCode.SUCCESS. -
Method Summary
Modifier and TypeMethodDescriptiondefault voidtestAndThrow(Result result) Test a result and throw if the test succeeds.
-
Field Details
-
NOT_SUCCESS
Predicate that throws if the result code is notResultCode.SUCCESS.
-
-
Method Details
-
testAndThrow
Test a result and throw if the test succeeds.- Parameters:
result- input argument- Throws:
LdapException- ifPredicate.test(Object)returns true
-