Package org.hibernate.testing.hamcrest
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
All Methods Static Methods Instance Methods Concrete Methods 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
matches(Object o)
-
-
-
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)
-
-