Class StringSetMatch

java.lang.Object
edu.umd.cs.findbugs.filter.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 Details

    • StringSetMatch

      public StringSetMatch(String strings)
      Constructor.
      Parameters:
      strings - comma-separated list of Strings
  • Method Details

    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • 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
    • toString

      public String toString()
      Overrides:
      toString in class Object