* * *

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

##  org.hamcrest.text  
Class IsEmptyString

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

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

Matches empty Strings (and null).

* * *

**Constructor Summary**  
---  
` **[ IsEmptyString
](../../../org/hamcrest/text/IsEmptyString.html#IsEmptyString\(\)) ** () `  
  
**Method Summary**  
---  
` void ` |  ` **[ describeTo ](../../../org/hamcrest/text/IsEmptyString.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> ` |  ` **[ isEmptyOrNullString ](../../../org/hamcrest/text/IsEmptyString.html#isEmptyOrNullString\(\)) ** () `   
Creates a matcher of ` String ` that matches when the examined string is `
null ` , or has zero length.  
` static [ Matcher ](../../../org/hamcrest/Matcher.html "interface in org.hamcrest") <java.lang.String> ` |  ` **[ isEmptyString ](../../../org/hamcrest/text/IsEmptyString.html#isEmptyString\(\)) ** () `   
Creates a matcher of ` String ` that matches when the examined string has zero
length.  
` boolean ` |  ` **[ matches ](../../../org/hamcrest/text/IsEmptyString.html#matches\(java.lang.Object\)) ** (java.lang.Object item) `   
Evaluates the matcher for argument  item  .  
**Methods inherited from class org.hamcrest.[ BaseMatcher
](../../../org/hamcrest/BaseMatcher.html "class in org.hamcrest") **  
---  
` [ _dont_implement_Matcher___instead_extend_BaseMatcher_
](../../../org/hamcrest/BaseMatcher.html#_dont_implement_Matcher___instead_extend_BaseMatcher_\(\))
, [ describeMismatch
](../../../org/hamcrest/BaseMatcher.html#describeMismatch\(java.lang.Object,
org.hamcrest.Description\)) , [ 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**  
---  
  
###  IsEmptyString

    
    
    public **IsEmptyString**()

**Method Detail**  
---  
  
###  matches

    
    
    public boolean **matches**(java.lang.Object item)

     **Description copied from interface:` [ Matcher ](../../../org/hamcrest/Matcher.html#matches\(java.lang.Object\)) ` **
     Evaluates the matcher for argument  item  . 

This method matches against Object, instead of the generic type T. This is
because the caller of the Matcher does not know at runtime what the type is
(because of type erasure with Java generics). It is down to the
implementations to check