|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.collections.functors.IdentityPredicate
public final class IdentityPredicate
Predicate implementation that returns true if the input is the same object as the one stored in this predicate.
| Constructor Summary | |
|---|---|
IdentityPredicate(java.lang.Object object)
Constructor that performs no validation. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IdentityPredicate(java.lang.Object object)
getInstance if you want that.
object - the object to compare to| Method Detail |
|---|
public static Predicate getInstance(java.lang.Object object)
object - the object to compare to
java.lang.IllegalArgumentException - if the predicate is nullpublic boolean evaluate(java.lang.Object object)
evaluate in interface Predicateobject - the input object
public java.lang.Object getValue()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||