dont_implement_Matcher___instead_extend_BaseMatcher_
](../../../org/hamcrest/BaseMatcher.html#_dont_implement_Matcher___instead_extend_BaseMatcher_\(\))
, [ toString ](../../../org/hamcrest/BaseMatcher.html#toString\(\)) `  
**Methods inherited from class java.lang.Object**  
---  
` clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait,
wait `  
  
**Field Detail**  
---  
  
###  substring

    
    
    protected final java.lang.String **substring**

**Constructor Detail**  
---  
  
###  SubstringMatcher

    
    
    protected **SubstringMatcher**(java.lang.String substring)

**Method Detail**  
---  
  
###  matchesSafely

    
    
    public boolean **matchesSafely**(java.lang.String item)

     **Description copied from class:` [ TypeSafeMatcher ](../../../org/hamcrest/TypeSafeMatcher.html#matchesSafely\(T\)) ` **
     Subclasses should implement this. The item will already have been checked for the specific type and will never be null. 

    

**Specified by:**      ` [ matchesSafely
](../../../org/hamcrest/TypeSafeMatcher.html#matchesSafely\(T\)) ` in class `
[ TypeSafeMatcher ](../../../org/hamcrest/TypeSafeMatcher.html "class in
org.hamcrest") <java.lang.String> `

    

* * *

###  describeMismatchSafely

    
    
    public void **describeMismatchSafely**(java.lang.String item,
                                       [Description](../../../org/hamcrest/Description.html "interface in org.hamcrest") mismatchDescription)

     **Description copied from class:` [ TypeSafeMatcher ](../../../org/hamcrest/TypeSafeMatcher.html#describeMismatchSafely\(T, org.hamcrest.Description\)) ` **
     Subclasses should override this. The item will already have been checked for the specific type and will never be null. 

    

**Overrides:**      ` [ describeMismatchSafely
](../../../org/hamcrest/TypeSafeMatcher.html#describeMismatchSafely\(T,
org.hamcrest.Description\)) ` in class ` [ TypeSafeMatcher
](../../../org/hamcrest/TypeSafeMatcher.html "class in org.hamcrest")
<java.lang.String> `

    

* * *

###  describeTo

    
    
    public void **describeTo**([Description](../../../org/hamcrest/Description.html "interface in org.hamcrest") description)

     **Description copied from interface:` [ SelfDescribing ](../../../org/hamcrest/SelfDescribing.html#describeTo\(org.hamcrest.Description\)) ` **
     Generates a description of the object. The description may be part of a a description of a larger object of which this is just a component, so it should be worded appropriately. 

    

**Parameters:**      ` description ` \- The description to be built or
appended to.

* * *

###  evalSubstringOf

    
    
    protected abstract boolean **evalSubstringOf**(java.lang.String string)

    

* * *

###  relationship

    
    
    protected abstract java.lang.String **relationship**()

    

* * *

|  [ **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   
  
* * *