Package classycle.dependency
Class PatternVertexCondition
- java.lang.Object
-
- classycle.dependency.PatternVertexCondition
-
- All Implemented Interfaces:
VertexCondition
public class PatternVertexCondition extends java.lang.Object implements VertexCondition
- Author:
- Franz-Josef Elmer
-
-
Constructor Summary
Constructors Constructor Description PatternVertexCondition(StringPattern pattern)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isFulfilled(Vertex vertex)
Returnstrue
if the specified vertex fulfills the condition.java.lang.String
toString()
-
-
-
Constructor Detail
-
PatternVertexCondition
public PatternVertexCondition(StringPattern pattern)
-
-
Method Detail
-
isFulfilled
public boolean isFulfilled(Vertex vertex)
Description copied from interface:VertexCondition
Returnstrue
if the specified vertex fulfills the condition.- Specified by:
isFulfilled
in interfaceVertexCondition
- Parameters:
vertex
- The vertex to be checked. Can benull
.- Returns:
false
ifvertex == null
.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-