Class CollectionMatcher<C extends Collection<?>>

java.lang.Object
org.hamcrest.BaseMatcher<C>
com.jayway.jsonassert.impl.matcher.CollectionMatcher<C>
All Implemented Interfaces:
org.hamcrest.Matcher<C>, org.hamcrest.SelfDescribing
Direct Known Subclasses:
IsCollectionWithSize, IsEmptyCollection

public abstract class CollectionMatcher<C extends Collection<?>> extends org.hamcrest.BaseMatcher<C>
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    protected abstract boolean
    matchesSafely(C collection)
     

    Methods inherited from class org.hamcrest.BaseMatcher

    _dont_implement_Matcher___instead_extend_BaseMatcher_, describeMismatch, isNotNull, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.hamcrest.SelfDescribing

    describeTo
  • Constructor Details

    • CollectionMatcher

      public CollectionMatcher()
  • Method Details

    • matches

      public boolean matches(Object item)
    • matchesSafely

      protected abstract boolean matchesSafely(C collection)