public final class IdentityPredicate extends Object implements Predicate, Serializable
Constructor and Description |
---|
IdentityPredicate(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 object is identical to
the stored object.
|
static Predicate |
getInstance(Object object)
Factory to create the identity predicate.
|
Object |
getValue()
Gets the value.
|
public IdentityPredicate(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–2015 The Apache Software Foundation. All rights reserved.