Class StringSetMatcher

    • Field Detail

      • values

        private final java.util.Set<java.lang.String> values
        The values to check against.
    • Constructor Detail

      • StringSetMatcher

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

      • matches

        public boolean matches​(java.lang.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.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object