com.jayway.jsonassert.impl.matcher
Class IsEmptyCollection<E>
java.lang.Object
org.hamcrest.BaseMatcher<C>
com.jayway.jsonassert.impl.matcher.CollectionMatcher<java.util.Collection<E>>
com.jayway.jsonassert.impl.matcher.IsEmptyCollection<E>
- All Implemented Interfaces:
- org.hamcrest.Matcher<java.util.Collection<E>>, org.hamcrest.SelfDescribing
public class IsEmptyCollection<E>
- extends CollectionMatcher<java.util.Collection<E>>
Tests if collection is empty.
|
Method Summary |
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.BaseMatcher |
_dont_implement_Matcher___instead_extend_BaseMatcher_, describeMismatch, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
IsEmptyCollection
public IsEmptyCollection()
matchesSafely
public boolean matchesSafely(java.util.Collection<E> item)
- Specified by:
matchesSafely in class CollectionMatcher<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 © 2011-2012. All Rights Reserved.