public class EdgePredicateFactory extends Object
EdgePredicates
.Modifier and Type | Method and Description |
---|---|
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(org.apache.commons.collections.Predicate userObjectPredicate,
org.apache.commons.collections.Predicate firstNodePredicate,
org.apache.commons.collections.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 . |
public static final EdgePredicate create(Graph.Edge edge)
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.public static final EdgePredicate createEqualsNodes(Object firstNode, Object secondNode, int directionFlags)
EdgePredicate
which tests for
Graph.Edges
that have the specified endpoints and
direction relative to firstNode
.public static final EdgePredicate createEqualsUser(Object userObject, int directionFlags)
EdgePredicate
which tests for
Graph.Edges
that contain the specified user
object and have the specified directedness.public static final EdgePredicate createEquals(Object userObject, Object firstNode, Object secondNode, int directionFlags)
EdgePredicate
which tests for
Graph.Edges
that contain the specified user
object, have the specified endpoints, and have the specified
direction relative to firstNode
.public static final EdgePredicate createPredicated(org.apache.commons.collections.Predicate userObjectPredicate, org.apache.commons.collections.Predicate firstNodePredicate, org.apache.commons.collections.Predicate secondNodePredicate, int directionFlags)
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
.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.