Class CollectionMatcher<C extends java.util.Collection<?>>

  • All Implemented Interfaces:
    org.hamcrest.Matcher<C>, org.hamcrest.SelfDescribing
    Direct Known Subclasses:
    IsCollectionWithSize, IsEmptyCollection

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

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      boolean matches​(java.lang.Object item)  
      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 Detail

      • CollectionMatcher

        public CollectionMatcher()
    • Method Detail

      • matches

        public boolean matches​(java.lang.Object item)
      • matchesSafely

        protected abstract boolean matchesSafely​(C collection)