public final class EqualPredicate extends java.lang.Object implements Predicate, java.io.Serializable
Constructor and Description |
---|
EqualPredicate(java.lang.Object object)
Constructor that performs no validation.
|
Modifier and Type | Method and Description |
---|---|
boolean |
evaluate(java.lang.Object object)
Evaluates the predicate returning true if the input equals the stored value.
|
static Predicate |
getInstance(java.lang.Object object)
Factory to create the identity predicate.
|
java.lang.Object |
getValue()
Gets the value.
|
public EqualPredicate(java.lang.Object object)
getInstance
if you want that.object
- the object to compare topublic static Predicate getInstance(java.lang.Object object)
object
- the object to compare tojava.lang.IllegalArgumentException
- if the predicate is nullpublic boolean evaluate(java.lang.Object object)
public java.lang.Object getValue()
Copyright © 2010 - 2020 Adobe. All Rights Reserved