Class AndStringPattern

All Implemented Interfaces:
StringPattern

public class AndStringPattern extends StringPatternSequence
Logical AND Operation on a sequence of StringPatterns.
Author:
Franz-Josef Elmer
  • Constructor Details

    • AndStringPattern

      public AndStringPattern(StringPattern... pattern)
      Creates instance with specified patterns.
  • Method Details

    • matches

      public boolean matches(String string)
      Return false if a pattern in the sequence returns false. Otherwise true is returned.
      Parameters:
      string - String to be matched. Can be null.
    • getOperatorSymbol

      protected String getOperatorSymbol()
      Description copied from class: StringPatternSequence
      Returns the operator symbol for pretty printing. Needed by toString().
      Specified by:
      getOperatorSymbol in class StringPatternSequence