public class ShouldAccept extends BasicErrorMessageFactory
Predicate accepts a value failed.arguments, format, formatter| Modifier | Constructor and Description |
|---|---|
private |
ShouldAccept(java.util.function.Predicate<?> predicate,
java.lang.Object value,
PredicateDescription description) |
| Modifier and Type | Method and Description |
|---|---|
static <T> ErrorMessageFactory |
shouldAccept(java.util.function.Predicate<? super T> predicate,
T value,
PredicateDescription description)
Creates a new
ShouldAccept. |
create, create, create, equals, hashCode, toString, unquotedStringprivate ShouldAccept(java.util.function.Predicate<?> predicate,
java.lang.Object value,
PredicateDescription description)
public static <T> ErrorMessageFactory shouldAccept(java.util.function.Predicate<? super T> predicate, T value, PredicateDescription description)
ShouldAccept.T - guarantees that the type of the value value and the generic type of the Predicate are the same.predicate - the Predicate.value - the value value in the failed assertion.description - predicate description to include in the error message,ErrorMessageFactory.