Package edu.umd.cs.findbugs.filter
Class StringSetMatch
java.lang.Object
edu.umd.cs.findbugs.filter.StringSetMatch
Matches a string against a set of predefined values.
Value set is defined using a String containing a comma separated value list.
Heading an trailing whitespace on the values is ignored in matching.
- Author:
- rak
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
StringSetMatch
Constructor.- Parameters:
strings
- comma-separated list of Strings
-
-
Method Details
-
hashCode
public int hashCode() -
equals
-
isEmpty
public boolean isEmpty() -
match
Returns true if the given string is contained in the value set.- Parameters:
string
-- Returns:
- true if the given string is contained in the value set
-
toString
-