| Modifier and Type | Field and Description |
|---|---|
| private final Equator | equator
The equator to use for comparison |
| private final T | iValue
The value to compare to |
| private static final long | serialVersionUID
Serial version UID |
| Access | Constructor and Description |
|---|---|
| public | |
| public | EqualPredicate(final T
the object to compare to object, final Equator<T> the equator to use for comparison equator)Constructor that performs no validation. |
| Modifier and Type | Method and Description |
|---|---|
| public static < the type that the predicate queries T> Predicate | Returns: the predicatethe object to compare to object)Factory to create the predicate. |
| public static < the type that the predicate queries T> Predicate | Returns: the predicatethe object to compare to object, final Equator<T> the equator to use for comparison equator)Factory to create the identity predicate. |
| public boolean | Returns: true if input object equals stored valuethe input object object)Implements org. |
| public Object |
| equator | back to summary |
|---|---|
| private final Equator<T> equator The equator to use for comparison | |
| iValue | back to summary |
|---|---|
| private final T iValue The value to compare to | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Serial version UID | |
| EqualPredicate | back to summary |
|---|---|
| public EqualPredicate(final T object) Constructor that performs no validation.
Use
| |
| EqualPredicate | back to summary |
|---|---|
| public EqualPredicate(final T object, final Equator<T> equator) Constructor that performs no validation.
Use
| |
| equalPredicate | back to summary |
|---|---|
| public static <T> Predicate Factory to create the predicate.
| |
| equalPredicate | back to summary |
|---|---|
| public static <T> Predicate Factory to create the identity predicate. | |
| evaluate | back to summary |
|---|---|
| public boolean evaluate(final T object) Implements org. Evaluates the predicate returning true if the input equals the stored value.
| |
| getValue | back to summary |
|---|---|
| public Object getValue() Gets the value.
| |