- All Known Implementing Classes:
- 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 ModificationPrecondition<T extends ObjectType>
boolean holds(PrismObject<T> object) throws PreconditionViolationExceptionProblem can be reported either by returning false or by throwing PreconditionViolationException directly. The former method is easier while the latter one gives a possibility to provide a custom exception message.