Class CollectionMatcher<C extends Collection<?>>

  • 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 Detail

      • CollectionMatcher

        public CollectionMatcher()
    • Method Detail

      • matches

        public boolean matches​(Object item)
      • matchesSafely

        protected abstract boolean matchesSafely​(C collection)