Package repast.simphony.filter
Class RegExStringFilter
- java.lang.Object
-
- repast.simphony.filter.RegExStringFilter
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
RegExStringFilter()
RegExStringFilter(String regEx)
Creates aRegExStringFilter
that will evaluate to true if the passed in String matches the specified regular expression.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
evaluate(String object)
String
getPattern()
Gets the regular expression pattern for this RegExFilter.
-
-
-
Field Detail
-
pattern
protected Pattern pattern
-
-
Constructor Detail
-
RegExStringFilter
protected RegExStringFilter()
-
RegExStringFilter
public RegExStringFilter(String regEx)
Creates aRegExStringFilter
that will evaluate to true if the passed in String matches the specified regular expression.- Parameters:
regEx
- the regular expression to match
-
-