|
Plexus v0.13.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.phoenixst.plexus.EdgePredicateFactory
public class EdgePredicateFactory
A factory for creating EdgePredicates
.
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(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 . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
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
.
|
Plexus v0.13.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |