* * *

|  [ **Overview** ](../../../overview-summary.html) |  [ **Package** ](package-summary.html) |  **Class** |  [ **Use** ](class-use/SubstringMatcher.html) |  [ **Tree** ](package-tree.html) |  [ **Deprecated** ](../../../deprecated-list.html) |  [ **Index** ](../../../index-all.html) |  [ **Help** ](../../../help-doc.html)  
---|---|---|---|---|---|---|---  
__  
[ **PREV CLASS** ](../../../org/hamcrest/core/StringStartsWith.html "class in org.hamcrest.core") NEXT CLASS  |  [ **FRAMES** ](../../../index.html?org/hamcrest/core/SubstringMatcher.html) [ **NO FRAMES** ](SubstringMatcher.html) [ **All Classes** ](../../../allclasses-noframe.html)  
SUMMARY: NESTED |  FIELD  |  CONSTR  |  METHOD  |  DETAIL:  FIELD  |  CONSTR  |  METHOD   
  
* * *

##  org.hamcrest.core  
Class SubstringMatcher

    
    
    java.lang.Object
      ![extended by ](../../../resources/inherit.gif)[org.hamcrest.BaseMatcher](../../../org/hamcrest/BaseMatcher.html "class in org.hamcrest")<T>
          ![extended by ](../../../resources/inherit.gif)[org.hamcrest.TypeSafeMatcher](../../../org/hamcrest/TypeSafeMatcher.html "class in org.hamcrest")<java.lang.String>
              ![extended by ](../../../resources/inherit.gif)**org.hamcrest.core.SubstringMatcher**
    

**All Implemented Interfaces:**      [ Matcher
](../../../org/hamcrest/Matcher.html "interface in org.hamcrest")
<java.lang.String>, [ SelfDescribing
](../../../org/hamcrest/SelfDescribing.html "interface in org.hamcrest")

**Direct Known Subclasses:**      [ StringContains
](../../../org/hamcrest/core/StringContains.html "class in org.hamcrest.core")
, [ StringEndsWith ](../../../org/hamcrest/core/StringEndsWith.html "class in
org.hamcrest.core") , [ StringStartsWith
](../../../org/hamcrest/core/StringStartsWith.html "class in
org.hamcrest.core")

* * *
    
    
    public abstract class **SubstringMatcher** extends [TypeSafeMatcher](../../../org/hamcrest/TypeSafeMatcher.html "class in org.hamcrest")<java.lang.String>

* * *

**Field Summary**  
---  
` protected java.lang.String ` |  ` **[ substring ](../../../org/hamcrest/core/SubstringMatcher.html#substring) ** `   
  
**Constructor Summary**  
---  
` protected ` |  ` **[ SubstringMatcher ](../../../org/hamcrest/core/SubstringMatcher.html#SubstringMatcher\(java.lang.String\)) ** (java.lang.String substring) `   
  
**Method Summary**  
---  
` void ` |  ` **[ describeMismatchSafely ](../../../org/hamcrest/core/SubstringMatcher.html#describeMismatchSafely\(java.lang.String, org.hamcrest.Description\)) ** (java.lang.String item, [ Description ](../../../org/hamcrest/Description.html "interface in org.hamcrest") mismatchDescription) `   
Subclasses should override this.  
` void ` |  ` **[ describeTo ](../../../org/hamcrest/core/SubstringMatcher.html#describeTo\(org.hamcrest.Description\)) ** ( [ Description ](../../../org/hamcrest/Description.html "interface in org.hamcrest") description) `   
Generates a description of the object.  
` protected abstract boolean ` |  ` **[ evalSubstringOf ](../../../org/hamcrest/core/SubstringMatcher.html#evalSubstringOf\(java.lang.String\)) ** (java.lang.String string) `   
  
` boolean ` |  ` **[ matchesSafely ](../../../org/hamcrest/core/SubstringMatcher.html#matchesSafely\(java.lang.String\)) ** (java.lang.String item) `   
Subclasses should implement this.  
` protected abstract java.lang.String ` |  ` **[ relationship ](../../../org/hamcrest/core/SubstringMatcher.html#relationship\(\)) ** () `   
  
**Methods inherited from class org.hamcrest.[ TypeSafeMatcher
](../../../org/hamcrest/TypeSafeMatcher.html "class in org.hamcrest") **  
---  
` [ describeMismatch
](../../../org/hamcrest/TypeSafeMatcher.html#describeMismatch\(java.lang.Object,
org.hamcrest.Description\)) , [ matches
](../../../org/hamcrest/TypeSafeMatcher.html#matches\(java.lang.Object\)) `  
**Methods inherited from class org.hamcrest.[ BaseMatcher
](../../../org/hamcrest/BaseMatcher.html "class in org.hamcrest") **  
---  
` [ _