Package docking.widgets.filter
Class MatchesPatternTextFilter
- java.lang.Object
-
- docking.widgets.filter.AbstractPatternTextFilter
-
- docking.widgets.filter.MatchesPatternTextFilter
-
- All Implemented Interfaces:
TextFilter
- Direct Known Subclasses:
ContainsTextFilter
,MatchesExactlyTextFilter
,StartsWithTextFilter
public abstract class MatchesPatternTextFilter extends AbstractPatternTextFilter
A text filter that uses a pattern and performs a 'matches' using that pattern.
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
allowGlobbing
protected boolean
caseSensitive
-
Fields inherited from class docking.widgets.filter.AbstractPatternTextFilter
filterPattern, filterText
-
-
Constructor Summary
Constructors Constructor Description MatchesPatternTextFilter(java.lang.String filterText, boolean caseSensitive, boolean allowGlobbing)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
int
hashCode()
boolean
matches(java.lang.String text, java.util.regex.Pattern pattern)
Subclasses implement this method for their usage of the given pattern (find vs.-
Methods inherited from class docking.widgets.filter.AbstractPatternTextFilter
createPattern, getFilterText, matches, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface docking.widgets.filter.TextFilter
isSubFilterOf
-
-
-
-
Method Detail
-
matches
public boolean matches(java.lang.String text, java.util.regex.Pattern pattern)
Description copied from class:AbstractPatternTextFilter
Subclasses implement this method for their usage of the given pattern (find vs. matches)- Specified by:
matches
in classAbstractPatternTextFilter
- Parameters:
text
- the text to check against the patternpattern
- the pattern used to match the text- Returns:
- true if there is a match
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classAbstractPatternTextFilter
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classAbstractPatternTextFilter
-
-