edu.umd.cs.findbugs.filter

Class StringSetMatch

public class StringSetMatch extends Object

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
StringSetMatch(String strings)
Constructor.
Method Summary
booleanisEmpty()
booleanmatch(String string)
Returns true if the given string is contained in the value set.

Constructor Detail

StringSetMatch

public StringSetMatch(String strings)
Constructor.

Parameters: strings comma-separated list of Strings

Method Detail

isEmpty

public boolean isEmpty()

match

public boolean match(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

FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.