public final class EqualPredicate extends Object implements Predicate, Serializable
Constructor and Description |
---|
EqualPredicate(Object object)
Constructor that performs no validation.
|
Modifier and Type | Method and Description |
---|---|
boolean |
evaluate(Object object)
Evaluates the predicate returning true if the input equals the stored value.
|
static Predicate |
getInstance(Object object)
Factory to create the identity predicate.
|
Object |
getValue()
Gets the value.
|
public EqualPredicate(Object object)
getInstance
if you want that.object
- the object to compare topublic static Predicate getInstance(Object object)
object
- the object to compare toIllegalArgumentException
- if the predicate is nullpublic boolean evaluate(Object object)
public Object getValue()
Copyright © 2001–2014 The Apache Software Foundation. All rights reserved.