Class CollectionElementMatcher<E,​C extends Collection<E>>

  • All Implemented Interfaces:
    org.hamcrest.Matcher<C>, org.hamcrest.SelfDescribing

    public class CollectionElementMatcher<E,​C extends Collection<E>>
    extends org.hamcrest.BaseMatcher<C>
    • Constructor Detail

      • CollectionElementMatcher

        public CollectionElementMatcher​(org.hamcrest.Matcher<E>... elementMatchers)
    • Method Detail

      • hasAllOf

        public static <T> org.hamcrest.Matcher<Collection<T>> hasAllOf​(org.hamcrest.Matcher<T>... elementMatchers)
      • matches

        public boolean matches​(Object o)
      • describeTo

        public void describeTo​(org.hamcrest.Description description)