/../org/hamcrest/BaseMatcher.html "class in org.hamcrest") **  
---  
` [ _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 `  
  
**Constructor Detail**  
---  
  
###  IsEqualIgnoringWhiteSpace

    
    
    public **IsEqualIgnoringWhiteSpace**(java.lang.String string)

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

* * *

###  stripSpace

    
    
    public java.lang.String **stripSpace**(java.lang.String toBeStripped)

    

* * *

###  equalToIgnoringWhiteSpace

    
    
    public static [Matcher](../../../org/hamcrest/Matcher.html "interface in org.hamcrest")<java.lang.String> **equalToIgnoringWhiteSpace**(java.lang.String expectedString)

     Creates a matcher of ` String ` that matches when the examined string is equal to the specified expectedString, when whitespace differences are (mostly) ignored. To be exact, the following whitespace rules are applied: 

  * all leading and trailing whitespace of both the expectedString and the examined string are ignored 
  * any remaining whitespace, appearing within either string, is collapsed to a single space before comparison 

For example:

    
    
    assertThat("   my\tfoo  bar ", equalToIgnoringWhiteSpace(" my  foo bar"))

    

**Parameters:**      ` expectedString ` \- the expected value of matched
strings

* * *

|  [ **Overview** ](../../../overview-summary.html) |  [ **Package** ](package-summary.html) |  **Class** |  [ **Use** ](class-use/IsEqualIgnoringWhiteSpace.html) |  [ **Tree** ](package-tree.html) |  [ **Deprecated** ](../../../deprecated-list.html) |  [ **Index** ](../../../index-all.html) |  [ **Help** ](../../../help-doc.html)  
---|---|---|---|---|---|---|---  
__  
[ **PREV CLASS** ](../../../or