* * *

|  [ **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** ](../../../org/hamcrest/text/IsEqualIgnoringCase.html "class in org.hamcrest.text") [ **NEXT CLASS** ](../../../org/hamcrest/text/StringContainsInOrder.html "class in org.hamcrest.text") |  [ **FRAMES** ](../../../index.html?org/hamcrest/text/IsEqualIgnoringWhiteSpace.html) [ **NO FRAMES** ](IsEqualIgnoringWhiteSpace.html) [ **All Classes** ](../../../allclasses-noframe.html)  
SUMMARY: NESTED | FIELD |  CONSTR  |  METHOD  |  DETAIL: FIELD |  CONSTR  |  METHOD   
  
* * *

##  org.hamcrest.text  
Class IsEqualIgnoringWhiteSpace

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

**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 **IsEqualIgnoringWhiteSpace** extends [TypeSafeMatcher](../../../org/hamcrest/TypeSafeMatcher.html "class in org.hamcrest")<java.lang.String>

Tests if a string is equal to another string, ignoring any changes in
whitespace.

* * *

**Constructor Summary**  
---  
` **[ IsEqualIgnoringWhiteSpace
](../../../org/hamcrest/text/IsEqualIgnoringWhiteSpace.html#IsEqualIgnoringWhiteSpace\(java.lang.String\))
** (java.lang.String string) `  
  
**Method Summary**  
---  
` void ` |  ` **[ describeMismatchSafely ](../../../org/hamcrest/text/IsEqualIgnoringWhiteSpace.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/text/IsEqualIgnoringWhiteSpace.html#describeTo\(org.hamcrest.Description\)) ** ( [ Description ](../../../org/hamcrest/Description.html "interface in org.hamcrest") description) `   
Generates a description of the object.  
` static [ Matcher ](../../../org/hamcrest/Matcher.html "interface in org.hamcrest") <java.lang.String> ` |  ` **[ equalToIgnoringWhiteSpace ](../../../org/hamcrest/text/IsEqualIgnoringWhiteSpace.html#equalToIgnoringWhiteSpace\(java.lang.String\)) ** (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.  
` boolean ` |  ` **[ matchesSafely ](../../../org/hamcrest/text/IsEqualIgnoringWhiteSpace.html#matchesSafely\(java.lang.String\)) ** (java.lang.String item) `   
Subclasses should implement this.  
` java.lang.String ` |  ` **[ stripSpace ](../../../org/hamcrest/text/IsEqualIgnoringWhiteSpace.html#stripSpace\(java.lang.String\)) ** (java.lang.String toBeStripped) `   
  
**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
](../..