public static class Checks.Check<A> extends Object
Modifier and Type | Field and Description |
---|---|
protected Predicate<? super A> |
condition |
protected String |
display |
Modifier | Constructor and Description |
---|---|
protected |
Check(Predicate<? super A> condition,
String display) |
Modifier and Type | Method and Description |
---|---|
<B extends A> |
and(Checks.Check<? super B> other) |
void |
check(A value) |
A |
checked(A value) |
String |
display(A value) |
boolean |
isValid(A value) |
Checks.Check<A> |
negate() |
<B extends A> |
or(Checks.Check<? super B> other) |
protected final String display
public final void check(A value)
public final boolean isValid(A value)
public Checks.Check<A> negate()
public <B extends A> Checks.Check<B> and(Checks.Check<? super B> other)
public <B extends A> Checks.Check<B> or(Checks.Check<? super B> other)
see also the complete user documentation .