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

      • doMatch

        protected boolean doMatch​(java.lang.String target)
        Matches the supplied value if it was found not to be null.
        Specified by:
        doMatch in class ElementMatcher.Junction.ForNonNullValues<java.lang.String>
        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