Class AllItemsMatch<T>

  • All Implemented Interfaces:
    org.hamcrest.Matcher<java.util.Collection<T>>, org.hamcrest.SelfDescribing

    public class AllItemsMatch<T>
    extends org.hamcrest.BaseMatcher<java.util.Collection<T>>
    All items in a collection matches the given matcher. This is equivalent with a loop over all items in the collection and calling assertThat(item, matcher)
    • Constructor Summary

      Constructors 
      Constructor Description
      AllItemsMatch​(org.hamcrest.Matcher<T> matcher)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void describeMismatch​(java.lang.Object item, org.hamcrest.Description description)  
      void describeTo​(org.hamcrest.Description description)  
      boolean matches​(java.lang.Object item)  
      • Methods inherited from class org.hamcrest.BaseMatcher

        _dont_implement_Matcher___instead_extend_BaseMatcher_, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • AllItemsMatch

        public AllItemsMatch​(org.hamcrest.Matcher<T> matcher)
    • Method Detail

      • matches

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

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

        public void describeMismatch​(java.lang.Object item,
                                     org.hamcrest.Description description)
        Specified by:
        describeMismatch in interface org.hamcrest.Matcher<T>
        Overrides:
        describeMismatch in class org.hamcrest.BaseMatcher<java.util.Collection<T>>