|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jjoost.util.filters.FilterPattern
public class FilterPattern
A filter accepting strings that match the provided pattern
| Constructor Summary | |
|---|---|
FilterPattern(java.util.regex.Pattern pattern)
Constructs a new filter accepting strings that match the provided pattern |
|
FilterPattern(java.lang.String pattern)
Constructs a new filter accepting strings that match the provided pattern |
|
| Method Summary | |
|---|---|
boolean |
accept(java.lang.String test)
Returns true if the Filter accepts the parameter and false otherwise |
static FilterPattern |
get(java.util.regex.Pattern pattern)
Returns a filter accepting strings that match the provided pattern |
static FilterPattern |
get(java.lang.String pattern)
Returns a filter accepting strings that match the provided pattern |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public FilterPattern(java.util.regex.Pattern pattern)
pattern - the pattern to filter bypublic FilterPattern(java.lang.String pattern)
pattern - the pattern to filter by| Method Detail |
|---|
public boolean accept(java.lang.String test)
Filtertrue if the Filter accepts the parameter and false otherwise
accept in interface Filter<java.lang.String>test - value to test
true if the filter accepts test; false otherwisepublic java.lang.String toString()
toString in class java.lang.Objectpublic static FilterPattern get(java.util.regex.Pattern pattern)
pattern - the pattern to filter by
public static FilterPattern get(java.lang.String pattern)
pattern - the pattern to filter by
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||