* * *

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

##  org.hamcrest.core  
Class StringEndsWith

    
    
    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](../../../org/hamcrest/core/SubstringMatcher.html "class in org.hamcrest.core")
                  ![extended by ](../../../resources/inherit.gif)**org.hamcrest.core.StringEndsWith**
    

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

* * *
    
    
    public class **StringEndsWith** extends [SubstringMatcher](../../../org/hamcrest/core/SubstringMatcher.html "class in org.hamcrest.core")

Tests if the argument is a string that contains a substring.

* * *

**Field Summary**  
---  
**Fields inherited from class org.hamcrest.core.[ SubstringMatcher
](../../../org/hamcrest/core/SubstringMatcher.html "class in
org.hamcrest.core") **  
---  
` [ substring ](../../../org/hamcrest/core/SubstringMatcher.html#substring) `  
**Constructor Summary**  
---  
` **[ StringEndsWith
](../../../org/hamcrest/core/StringEndsWith.html#StringEndsWith\(java.lang.String\))
** (java.lang.String substring) `  
  
**Method Summary**  
---  
` static [ Matcher ](../../../org/hamcrest/Matcher.html "interface in org.hamcrest") <java.lang.String> ` |  ` **[ endsWith ](../../../org/hamcrest/core/StringEndsWith.html#endsWith\(java.lang.String\)) ** (java.lang.String suffix) `   
Creates a matcher that matches if the examined ` String ` ends with the
specified ` String ` .  
` protected boolean ` |  ` **[ evalSubstringOf ](../../../org/hamcrest/core/StringEndsWith.html#evalSubstringOf\(java.lang.String\)) ** (java.lang.String s) `   
  
` protected java.lang.String ` |  ` **[ relationship ](../../../org/hamcrest/core/StringEndsWith.html#relationship\(\)) ** () `   
  
**Methods inherited from class org.hamcrest.core.[ SubstringMatcher
](../../../org/hamcrest/core/SubstringMatcher.html "class in
org.hamcrest.core") **  
---  
` [ describeMismatchSafely
](../../../org/hamcrest/core/SubstringMatcher.html#describeMismatchSafely\(java.lang.String,
org.hamcrest.Description\)) , [ describeTo
](../../../org/hamcrest/core/SubstringMatcher.html#describeTo\(org.hamcrest.Description\))
, [ matchesSafely
](../../../org/hamcrest/core/SubstringMatcher.html#matchesSafely\(java.lang.String\))
`  
**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