com.phoenixst.plexus
public interface EdgePredicate extends Predicate
Predicates
testing Graph.Edges
that can be piecewise defined. These
objects can be used by:
Since: 1.0
Version: $Revision: 1.3 $
Method Summary | |
---|---|
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 .
|
true
if the specified object satisfies
this EdgePredicate
, and false
otherwise. The specified object is expected to be an instance
of Edge.EdgePredicate
relative to the first node specification. It may be any of
the following values, or some combination made using
bitwise-or:
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
.
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
.
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
.