Package org.apache.commons.text.matcher
Class AbstractStringMatcher.NoneMatcher
- java.lang.Object
-
- org.apache.commons.text.matcher.AbstractStringMatcher
-
- org.apache.commons.text.matcher.AbstractStringMatcher.NoneMatcher
-
- All Implemented Interfaces:
StringMatcher
- Enclosing class:
- AbstractStringMatcher
static final class AbstractStringMatcher.NoneMatcher extends AbstractStringMatcher
Matches nothing.Thread=safe.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.commons.text.matcher.AbstractStringMatcher
AbstractStringMatcher.AndStringMatcher, AbstractStringMatcher.CharArrayMatcher, AbstractStringMatcher.CharMatcher, AbstractStringMatcher.CharSetMatcher, AbstractStringMatcher.NoneMatcher, AbstractStringMatcher.TrimMatcher
-
-
Constructor Summary
Constructors Constructor Description NoneMatcher()
Constructs a new instance ofNoMatcher
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
isMatch(char[] buffer, int start, int bufferStart, int bufferEnd)
Always returns0
.int
isMatch(java.lang.CharSequence buffer, int start, int bufferStart, int bufferEnd)
Always returns0
.int
size()
Returns 0.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.commons.text.matcher.StringMatcher
andThen, isMatch, isMatch
-
-
-
-
Method Detail
-
isMatch
public int isMatch(char[] buffer, int start, int bufferStart, int bufferEnd)
Always returns0
.- Parameters:
buffer
- unusedstart
- unusedbufferStart
- unusedbufferEnd
- unused- Returns:
- The number of matching characters, zero for no match
-
isMatch
public int isMatch(java.lang.CharSequence buffer, int start, int bufferStart, int bufferEnd)
Always returns0
.- Parameters:
buffer
- unusedstart
- unusedbufferStart
- unusedbufferEnd
- unused- Returns:
- The number of matching characters, zero for no match
-
size
public int size()
Returns 0.- Returns:
- the size of the matching string.
- Since:
- 1.9
-
-