T - the type to which the predicate is appliedpublic abstract class AbstractTriStatePredicate<T> extends Object implements Predicate<T>
Predicate implementation which provides support for cases where the
predicate can not meaningfully evaluate the input. The flags on this class
allow translating these cases to a boolean true or false
as required by the predicate interface.| Modifier and Type | Field and Description |
|---|---|
private boolean |
nullInputSatisfies
Flag indicating whether the null input case is treated as satisfying the predicate.
|
private boolean |
unevaluableSatisfies
Flag indicating whether the general unevaluable case is treated as satisfying the predicate.
|
| Constructor and Description |
|---|
AbstractTriStatePredicate() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isNullInputSatisfies()
Get the flag indicating whether a null input satisfies the predicate.
|
boolean |
isUnevaluableSatisfies()
Get the flag indicating whether a general 'unevaluable' input satisfies the predicate.
|
void |
setNullInputSatisfies(boolean flag)
Set the flag indicating whether a null input satisfies the predicate.
|
void |
setUnevaluableSatisfies(boolean flag)
Set the flag indicating whether a general 'unevaluable' input satisfies the predicate.
|
private boolean nullInputSatisfies
private boolean unevaluableSatisfies
public boolean isNullInputSatisfies()
public void setNullInputSatisfies(boolean flag)
flag - true if should satisfy, false otherwisepublic boolean isUnevaluableSatisfies()
public void setUnevaluableSatisfies(boolean flag)
flag - true if should satisfy, false otherwiseCopyright © 1999–2016 Shibboleth Consortium. All rights reserved.