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

java.lang.Object
org.hamcrest.BaseMatcher<C>
org.hibernate.testing.hamcrest.CollectionElementMatcher<E,C>
All Implemented Interfaces:
org.hamcrest.Matcher<C>, org.hamcrest.SelfDescribing

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

    Constructors
    Constructor
    Description
    CollectionElementMatcher(org.hamcrest.Matcher<E>... elementMatchers)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    describeTo(org.hamcrest.Description description)
     
    static <T> org.hamcrest.Matcher<Collection<T>>
    hasAllOf(org.hamcrest.Matcher<T>... elementMatchers)
     
    boolean
     

    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
  • Constructor Details

    • CollectionElementMatcher

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

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