public interface EdgePredicate
extends org.apache.commons.collections.Predicate
Predicates
testing Graph.Edges
that can be piecewise defined. These
objects can be used by:
Modifier and Type | Method and Description |
---|---|
boolean |
evaluate(Object object)
Returns
true if the specified object satisfies
this EdgePredicate , and false
otherwise. |
int |
getDirectionFlags()
Gets the direction flags for this
EdgePredicate
relative to the first node specification. |
Object |
getFirstNodeSpecification()
Gets the first node specification for this
EdgePredicate . |
Object |
getSecondNodeSpecification()
Gets the second node specification for this
EdgePredicate . |
Object |
getUserObjectSpecification()
Gets the user object specification for this
EdgePredicate . |
boolean evaluate(Object object)
true
if the specified object satisfies
this EdgePredicate
, and false
otherwise. The specified object is expected to be an instance
of Graph.Edge
.evaluate
in interface org.apache.commons.collections.Predicate
Object getUserObjectSpecification()
EdgePredicate
.
If the returned object is a Predicate
, then
that Predicate
must evaluate to true
when testing the contained user object for this
EdgePredicate
to be true
.
If the returned object is anything other than a
Predicate
, then the contained user object must be
.equals()
to the specified object (or it must be
null
if the specified object is
null
) for this EdgePredicate
to be
true
.
Object getFirstNodeSpecification()
EdgePredicate
.
If the returned object is a Predicate
, then
that Predicate
must evaluate to true
when testing the first node for this
EdgePredicate
to be true
.
If the returned object is anything other than a
Predicate
, then the first node must be
.equals()
to the specified object (or it must be
null
if the specified object is
null
) for this EdgePredicate
to be
true
.
Object getSecondNodeSpecification()
EdgePredicate
.
If the returned object is a Predicate
, then
that Predicate
must evaluate to true
when testing the second node for this
EdgePredicate
to be true
.
If the returned object is anything other than a
Predicate
, then the second node must be
.equals()
to the specified object (or it must be
null
if the specified object is
null
) for this EdgePredicate
to be
true
.
int getDirectionFlags()
EdgePredicate
relative to the first node specification. It may be any of
the following values, or some combination made using
bitwise-or:
See the Plexus project home, hosted by SourceForge.
Copyright ? 1994-2006, by Phoenix Software Technologists, Inc. and others. All Rights Reserved. Use is subject to license terms.