|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.progeeks.graph.DefaultEdgeDefinition
public class DefaultEdgeDefinition
Default implementation of EdgeDefintion that can take a filter and user object on the constructor.
Constructor Summary | |
---|---|
DefaultEdgeDefinition(org.apache.commons.collections.Predicate filter,
java.lang.Object userObject,
boolean directed)
|
Method Summary | |
---|---|
boolean |
evaluate(java.lang.Object obj)
Evaluates an edge to see if it matches this edge definition. |
java.lang.Object |
getEdgeUserObject(java.lang.Object tail,
java.lang.Object head)
Capable of creating user objects appropriate for edges of the type associated with this edge defition. |
org.apache.commons.collections.Predicate |
getTraverserPredicate()
Returns a filter capable of filtering edges of the type associated with this edge definition. |
boolean |
isDirected()
Returns true if the edges are directed. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultEdgeDefinition(org.apache.commons.collections.Predicate filter, java.lang.Object userObject, boolean directed)
Method Detail |
---|
public org.apache.commons.collections.Predicate getTraverserPredicate()
getTraverserPredicate
in interface EdgeDefinition
public boolean isDirected()
isDirected
in interface EdgeDefinition
public java.lang.Object getEdgeUserObject(java.lang.Object tail, java.lang.Object head)
getEdgeUserObject
in interface EdgeDefinition
public boolean evaluate(java.lang.Object obj)
evaluate
in interface org.apache.commons.collections.Predicate
evaluate
in interface EdgeDefinition
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |