com.jayway.jsonassert.impl.matcher
Class CollectionMatcher<C extends Collection<?>>

java.lang.Object
  extended by org.hamcrest.BaseMatcher<C>
      extended by 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
CollectionMatcher()
           
 
Method Summary
 boolean matches(Object item)
           
protected abstract  boolean matchesSafely(C collection)
           
 
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
 
Methods inherited from interface org.hamcrest.SelfDescribing
describeTo
 

Constructor Detail

CollectionMatcher

public CollectionMatcher()
Method Detail

matches

public boolean matches(Object item)

matchesSafely

protected abstract boolean matchesSafely(C collection)


Copyright © 2011-2012. All Rights Reserved.