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.
-
-
Constructor Summary
Constructors Constructor Description IsEmptyCollection()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description 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 com.jayway.jsonassert.impl.matcher.CollectionMatcher
matches
-
-
-
-
Method Detail
-
matchesSafely
public boolean matchesSafely(java.util.Collection<E> item)
- Specified by:
matchesSafely
in classCollectionMatcher<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.
-
-