Class MatchesPattern

    • Field Detail

      • PATTERN

        public static final cdc.util.args.FormalArg<String> PATTERN
      • FARGS

        public static final cdc.util.args.FormalArgs FARGS
      • FACTORY

        public static final cdc.util.args.Factory<MatchesPattern> FACTORY
      • LETTERS_OR_DIGITS

        public static final MatchesPattern LETTERS_OR_DIGITS
      • UC_LETTERS_OR_DIGITS

        public static final MatchesPattern UC_LETTERS_OR_DIGITS
      • LC_LETTERS_OR_DIGITS

        public static final MatchesPattern LC_LETTERS_OR_DIGITS
    • Constructor Detail

      • MatchesPattern

        public MatchesPattern​(Pattern pattern)
      • MatchesPattern

        public MatchesPattern​(String regex)
    • Method Detail

      • test

        public boolean test​(String value)
      • explain

        public String explain​(boolean result,
                              String argName)
        Description copied from interface: Checker
        Explains the conditions at which a positive or negative result is obtained.
        Parameters:
        result - The result to explain.
        argName - The argument name to use in explanations.
        Returns:
        A string explaining the conditions leading to result.
      • getPattern

        public Pattern getPattern()