com.phoenixst.plexus
public class EdgePredicateFactory extends Object
Method Summary | |
---|---|
static EdgePredicate | create(Graph.Edge edge)
Creates a new EdgePredicate which tests for
Graph.Edges which look just like the specified
edge . |
static EdgePredicate | createEquals(Object userObject, Object firstNode, Object secondNode, int directionFlags)
Creates a new EdgePredicate which tests for
Graph.Edges that contain the specified user
object, have the specified endpoints, and have the specified
direction relative to firstNode . |
static EdgePredicate | createEqualsNodes(Object firstNode, Object secondNode, int directionFlags)
Creates a new EdgePredicate which tests for
Graph.Edges that have the specified endpoints and
direction relative to firstNode . |
static EdgePredicate | createEqualsUser(Object userObject, int directionFlags)
Creates a new EdgePredicate which tests for
Graph.Edges that contain the specified user
object and have the specified directedness. |
static EdgePredicate | createPredicated(Predicate userObjectPredicate, Predicate firstNodePredicate, Predicate secondNodePredicate, int directionFlags)
Creates a new EdgePredicate which tests for
Graph.Edges whose contained user object and
endpoints satisfy the specified Predicates , and
which have the specified direction relative to the endpoint
satisyfing the firstNodePredicate . |
EdgePredicate
which tests for
Graph.Edges
which look just like the specified
edge
. To pass the returned
Predicate
, an edge must have the same endpoints,
contained user object, and directedness. If the specified
edge
is undirected, then the endpoints may be
swapped and still be valid.EdgePredicate
which tests for
Graph.Edges
that contain the specified user
object, have the specified endpoints, and have the specified
direction relative to firstNode
.EdgePredicate
which tests for
Graph.Edges
that have the specified endpoints and
direction relative to firstNode
.EdgePredicate
which tests for
Graph.Edges
that contain the specified user
object and have the specified directedness.EdgePredicate
which tests for
Graph.Edges
whose contained user object and
endpoints satisfy the specified Predicates
, and
which have the specified direction relative to the endpoint
satisyfing the firstNodePredicate
.