|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.northwestern.at.utils.RegExpCollectionFilter
public class RegExpCollectionFilter
Filters a String collection using a regular expression.
| Field Summary | |
|---|---|
protected java.lang.String |
sourcePattern
Source pattern string. |
protected java.util.regex.Matcher |
sourcePatternMatcher
Compiled source pattern matcher. |
| Constructor Summary | |
|---|---|
RegExpCollectionFilter(java.lang.String sourcePattern)
Create a filter definition. |
|
| Method Summary | |
|---|---|
java.util.Collection |
filter(java.util.Collection collection)
Filter a string collection using the pattern.. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String sourcePattern
protected java.util.regex.Matcher sourcePatternMatcher
| Constructor Detail |
|---|
public RegExpCollectionFilter(java.lang.String sourcePattern)
sourcePattern - Source pattern string as a
regular expression. | Method Detail |
|---|
public java.util.Collection filter(java.util.Collection collection)
collection - String collection to filter.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||