Package edu.umd.cs.findbugs.filter
Class StringSetMatch
- java.lang.Object
-
- edu.umd.cs.findbugs.filter.StringSetMatch
-
public class StringSetMatch extends java.lang.ObjectMatches 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
Constructors Constructor Description StringSetMatch(java.lang.String strings)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)inthashCode()booleanisEmpty()booleanmatch(java.lang.String string)Returns true if the given string is contained in the value set.java.lang.StringtoString()
-
-
-
Method Detail
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
isEmpty
public boolean isEmpty()
-
match
public boolean match(java.lang.String string)
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
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-