Package de.odrotbohm.spring.web.model
Interface TypeSafeRejector<T extends TypeSafeRejector<T,S>,S>
public interface TypeSafeRejector<T extends TypeSafeRejector<T,S>,S>
- Author:
- Oliver Drotbohm
-
Method Summary
Modifier and TypeMethodDescriptionrejectField(boolean condition, Function<? super T, ?> property, String errorCode) Rejects the field referred to by the givenFunction(ideally a method reference).rejectField(Function<? super T, ?> property, String errorCode) Rejects the field referred to by the givenFunction(ideally a method reference).
-
Method Details
-
rejectField
Rejects the field referred to by the givenFunction(ideally a method reference).- Parameters:
property- must not be null.errorCode- must not be null or empty.- Returns:
- will never be null.
-
rejectField
Rejects the field referred to by the givenFunction(ideally a method reference).- Parameters:
condition- the condition under which to reject the given field.property- must not be null.errorCode- must not be null or empty.- Returns:
- will never be null.
-
rejectField
-