Class StringSetMatcher

    • Constructor Detail

      • StringSetMatcher

        public StringSetMatcher​(Set<String> values)
        Creates a new string set matcher.
        Parameters:
        values - The values to check against.
    • Method Detail

      • matches

        public boolean matches​(String target)
        Description copied from interface: ElementMatcher
        Matches a target against this element matcher.
        Parameters:
        target - The instance to be matched.
        Returns:
        true if the given element is matched by this matcher or false otherwise.