|
Plexus v0.13.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.phoenixst.collections.EqualPredicate
public final class EqualPredicate
A Predicate
which simply tests the evaluate( object )
argument for equality with a specified object.
This is mostly equivalent to the class of the same name in Jakarta Commons-Collections 3.0, except that it exposes the test object used in the constructor. No equivalent exists in version 2.1.
Constructor Summary | |
---|---|
EqualPredicate(Object testObject)
Creates a new EqualPredicate with the specified
test object. |
Method Summary | |
---|---|
boolean |
equals(Object object)
|
boolean |
evaluate(Object object)
Returns true if the specified object
is .equals() to the test object, or if both are
null . |
Object |
getTestObject()
Returns the test object being used by this EqualPredicate . |
int |
hashCode()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public EqualPredicate(Object testObject)
EqualPredicate
with the specified
test object.
Method Detail |
---|
public boolean evaluate(Object object)
true
if the specified object
is .equals()
to the test object, or if both are
null
.
evaluate
in interface org.apache.commons.collections.Predicate
public Object getTestObject()
EqualPredicate
.
public boolean equals(Object object)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
|
Plexus v0.13.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |