Class MatchesPattern

    • 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 arg)
        Description copied from interface: Checker
        Explains the conditions at which a positive or negative result is obtained.
        Parameters:
        result - The result to explain.
        arg - The argument name to use in explanations.
        Returns:
        A string explaining the conditions leading to result.
      • getPattern

        public Pattern getPattern()