public final class IdentityPredicate extends java.lang.Object implements Predicate, java.io.Serializable
Constructor and Description |
---|
IdentityPredicate(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 object is identical to
the stored object.
|
static Predicate |
getInstance(java.lang.Object object)
Factory to create the identity predicate.
|
java.lang.Object |
getValue()
Gets the value.
|
public IdentityPredicate(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