com.phoenixst.plexus
public class TraverserPredicateFactory extends Object
| Method Summary | |
|---|---|
| static TraverserPredicate | create(Graph.Edge edge, boolean fromTail)
Creates a new TraverserPredicate which tests for
Graph.Edges which look just like the specified
edge, ignoring one endpoint.
|
| static TraverserPredicate | createEquals(Object userObject, Object node, int directionFlags)
Creates a new TraverserPredicate which tests for
traversals over Graph.Edges that contain the
specified user object, to the specified node,
with a direction specified relative to the endpoint
from which the Graph.Edge is
being traversed. |
| static TraverserPredicate | createEqualsNode(Object node, int directionFlags)
Creates a new TraverserPredicate which tests for
traversals to the specified node, with a
direction specified relative to the endpoint
from which the Graph.Edge is
being traversed. |
| static TraverserPredicate | createEqualsUser(Object userObject, int directionFlags)
Creates a new TraverserPredicate which tests for
traversals over Graph.Edges that contain the
specified user object, with a direction specified relative to
the endpoint from which the
Graph.Edge is being traversed. |
| static TraverserPredicate | createPredicated(Predicate userObjectPredicate, Predicate nodePredicate, int directionFlags)
Creates a new TraverserPredicate which tests for
traversals over Graph.Edges whose contained user
object satisfies userObjectPredicate, to a node
which satisfies nodePredicate, with a direction
specified relative to the endpoint from which
the Graph.Edge is being traversed. |
TraverserPredicate which tests for
Graph.Edges which look just like the specified
edge, ignoring one endpoint.
If fromTail is true, then the
returned Predicate tests for traversals over
Graph.Edges that contain the same user object, to
the head of the specified edge, with the same
directedness. In other words, test as if traversing from the
tail looking for a similar Graph.Edge, although
the tail itself is not checked.
If fromTail is false, then the
returned Predicate tests for traversals over
Graph.Edges that contain the same user object, to
the tail of the specified edge, with the same
directedness. In other words, test as if traversing from the
head looking for a similar Graph.Edge, although
the head itself is not checked.
TraverserPredicate which tests for
traversals over Graph.Edges that contain the
specified user object, to the specified node,
with a direction specified relative to the endpoint
from which the Graph.Edge is
being traversed.TraverserPredicate which tests for
traversals to the specified node, with a
direction specified relative to the endpoint
from which the Graph.Edge is
being traversed.TraverserPredicate which tests for
traversals over Graph.Edges that contain the
specified user object, with a direction specified relative to
the endpoint from which the
Graph.Edge is being traversed.TraverserPredicate which tests for
traversals over Graph.Edges whose contained user
object satisfies userObjectPredicate, to a node
which satisfies nodePredicate, with a direction
specified relative to the endpoint from which
the Graph.Edge is being traversed.