* * *

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

##  org.hamcrest.collection  
Class IsEmptyCollection<E>

    
    
    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.util.Collection<? extends E>>
              ![extended by ](../../../resources/inherit.gif)**org.hamcrest.collection.IsEmptyCollection <E>**
    

**All Implemented Interfaces:**      [ Matcher
](../../../org/hamcrest/Matcher.html "interface in org.hamcrest")
<java.util.Collection<? extends E>>, [ SelfDescribing
](../../../org/hamcrest/SelfDescribing.html "interface in org.hamcrest")

* * *
    
    
    public class **IsEmptyCollection <E>**extends [TypeSafeMatcher](../../../org/hamcrest/TypeSafeMatcher.html "class in org.hamcrest")<java.util.Collection<? extends E>>

Tests if collection is empty.

* * *

**Constructor Summary**  
---  
` **[ IsEmptyCollection
](../../../org/hamcrest/collection/IsEmptyCollection.html#IsEmptyCollection\(\))
** () `  
  
**Method Summary**  
---  
` void ` |  ` **[ describeMismatchSafely ](../../../org/hamcrest/collection/IsEmptyCollection.html#describeMismatchSafely\(java.util.Collection, org.hamcrest.Description\)) ** (java.util.Collection<? extends [ E ](../../../org/hamcrest/collection/IsEmptyCollection.html "type parameter in IsEmptyCollection") > item, [ Description ](../../../org/hamcrest/Description.html "interface in org.hamcrest") mismatchDescription) `   
Subclasses should override this.  
` void ` |  ` **[ describeTo ](../../../org/hamcrest/collection/IsEmptyCollection.html#describeTo\(org.hamcrest.Description\)) ** ( [ Description ](../../../org/hamcrest/Description.html "interface in org.hamcrest") description) `   
Generates a description of the object.  
` static  |  ` <E> [ Matcher ](../../../org/hamcrest/Matcher.html "interface in org.hamcrest") <java.util.Collection<? extends E>> `  
---  
` ` **[ empty
](../../../org/hamcrest/collection/IsEmptyCollection.html#empty\(\)) ** () `  
Creates a matcher for ` Collection ` s matching examined collections whose `
isEmpty ` method returns ` true ` .  
` static  |  ` <E> [ Matcher ](../../../org/hamcrest/Matcher.html "interface in org.hamcrest") <java.util.Collection<E>> `  
---  
` ` **[ emptyCollectionOf
](../../../org/hamcrest/collection/IsEmptyCollection.html#emptyCollectionOf\(java.lang.Class\))
** (java.lang.Class<E> type) `  
Creates a matcher for ` Collection ` s matching examined collections whose `
isEmpty ` method returns ` true ` .  
` boolean ` |  ` **[ matchesSafely ](../../../org/hamcrest/collection/IsEmptyCollection.html#matchesSafely\(java.util.Collection\)) ** (java.util.Collection<? extends [ E ](../../../org/hamcrest/collection/IsEmptyCollection.html "type parameter in IsEmptyCollection") > item) `   
Subclasses should implement this.  
**Methods inherited from class org.hamcrest.[ TypeSafeMatcher
](../../../org/hamcrest/TypeSafeMatcher.html "class in org.hamcrest")