Class ExactStringMatcher

java.lang.Object
edu.umd.cs.findbugs.util.ExactStringMatcher
All Implemented Interfaces:
StringMatcher

public class ExactStringMatcher extends Object implements StringMatcher
Exact String-matching predicate.
Author:
David Hovemeyer
  • Constructor Details

    • ExactStringMatcher

      public ExactStringMatcher(String expected)
      Constructor.
      Parameters:
      expected - the expected string value
  • Method Details

    • matches

      public boolean matches(String s)
      Description copied from interface: StringMatcher
      Return whether or not the given String matches.
      Specified by:
      matches in interface StringMatcher
      Parameters:
      s - a String
      Returns:
      true if the String matches, false if it does not match
    • toString

      public String toString()
      Overrides:
      toString in class Object