Class Countif.StringMatcher

  • All Implemented Interfaces:
    org.apache.poi.ss.formula.functions.CountUtils.I_MatchPredicate
    Enclosing class:
    Countif

    public static final class Countif.StringMatcher
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      StringMatcher​(java.lang.String value, org.apache.poi.ss.formula.functions.Countif.CmpOp operator)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.regex.Pattern getWildCardPattern​(java.lang.String value)
      Translates Excel countif wildcard strings into java regex strings
      boolean matches​(ValueEval x)  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • StringMatcher

        public StringMatcher​(java.lang.String value,
                             org.apache.poi.ss.formula.functions.Countif.CmpOp operator)
    • Method Detail

      • matches

        public boolean matches​(ValueEval x)
      • getWildCardPattern

        public static java.util.regex.Pattern getWildCardPattern​(java.lang.String value)
        Translates Excel countif wildcard strings into java regex strings
        Returns:
        null if the specified value contains no special wildcard characters.