FindBugs™ 1.3.9

edu.umd.cs.findbugs.util
Class ExactStringMatcher

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

public class ExactStringMatcher
extends java.lang.Object
implements StringMatcher

Exact String-matching predicate.

Author:
David Hovemeyer

Constructor Summary
ExactStringMatcher(java.lang.String expected)
          Constructor.
 
Method Summary
 boolean matches(java.lang.String s)
          Return whether or not the given String matches.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ExactStringMatcher

public ExactStringMatcher(java.lang.String expected)
Constructor.

Parameters:
expected - the expected string value
Method Detail

matches

public boolean matches(java.lang.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 java.lang.String toString()
Overrides:
toString in class java.lang.Object

FindBugs™ 1.3.9

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