org.hamcrest.collection
Class IsEmptyCollection<E>

java.lang.Object
  extended by org.hamcrest.BaseMatcher<T>
      extended by org.hamcrest.TypeSafeMatcher<java.util.Collection<E>>
          extended by org.hamcrest.collection.IsEmptyCollection<E>
All Implemented Interfaces:
org.hamcrest.Matcher<java.util.Collection<E>>, org.hamcrest.SelfDescribing

public class IsEmptyCollection<E>
extends org.hamcrest.TypeSafeMatcher<java.util.Collection<E>>

Tests if collection is empty.


Constructor Summary
IsEmptyCollection()
           
 
Method Summary
 void describeMismatchSafely(java.util.Collection<E> item, org.hamcrest.Description mismatchDescription)
           
 void describeTo(org.hamcrest.Description description)
           
static
<E> org.hamcrest.Matcher<java.util.Collection<E>>
empty()
          Matches an empty collection.
 boolean matchesSafely(java.util.Collection<E> item)
           
 
Methods inherited from class org.hamcrest.TypeSafeMatcher
describeMismatch, matches
 
Methods inherited from class org.hamcrest.BaseMatcher
_dont_implement_Matcher___instead_extend_BaseMatcher_, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IsEmptyCollection

public IsEmptyCollection()
Method Detail

matchesSafely

public boolean matchesSafely(java.util.Collection<E> item)
Specified by:
matchesSafely in class org.hamcrest.TypeSafeMatcher<java.util.Collection<E>>

describeMismatchSafely

public void describeMismatchSafely(java.util.Collection<E> item,
                                   org.hamcrest.Description mismatchDescription)
Overrides:
describeMismatchSafely in class org.hamcrest.TypeSafeMatcher<java.util.Collection<E>>

describeTo

public void describeTo(org.hamcrest.Description description)

empty

public static <E> org.hamcrest.Matcher<java.util.Collection<E>> empty()
Matches an empty collection.



Copyright © 2010. All Rights Reserved.