Class StrMatcher.NoMatcher

java.lang.Object
org.apache.commons.lang3.text.StrMatcher
org.apache.commons.lang3.text.StrMatcher.NoMatcher
Enclosing class:
StrMatcher

static final class StrMatcher.NoMatcher extends StrMatcher
Class used to match no characters.
  • Constructor Details

  • Method Details

    • isMatch

      public int isMatch(char[] buffer, int pos, int bufferStart, int bufferEnd)
      Tests whether the characters match. Always returns zero because this matcher never matches.
      Specified by:
      isMatch in class StrMatcher
      Parameters:
      buffer - The text content to match against, do not change.
      pos - The starting position for the match, valid for buffer.
      bufferStart - The first active index in the buffer, valid for buffer.
      bufferEnd - The end index of the active buffer, valid for buffer.
      Returns:
      The number of matching characters, zero for no match.