T - The type of the matched entity.@HashCodeAndEqualsPlugin.Enhance public class CollectionOneToOneMatcher<T> extends ElementMatcher.Junction.AbstractBase<java.lang.Iterable<? extends T>>
ElementMatcher.Junction.AbstractBase<V>, ElementMatcher.Junction.Conjunction<W>, ElementMatcher.Junction.Disjunction<W>ElementMatcher.Junction<S>| Modifier and Type | Field and Description |
|---|---|
private java.util.List<? extends ElementMatcher<? super T>> |
matchers
The list of element matchers to match any elements of the matched iterable collection against.
|
| Constructor and Description |
|---|
CollectionOneToOneMatcher(java.util.List<? extends ElementMatcher<? super T>> matchers)
Creates a new matcher that compares a matched iterable collection against a list of element matchers.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
matches(java.lang.Iterable<? extends T> target)
Matches a target against this element matcher.
|
java.lang.String |
toString() |
and, orprivate final java.util.List<? extends ElementMatcher<? super T>> matchers
public CollectionOneToOneMatcher(java.util.List<? extends ElementMatcher<? super T>> matchers)
matchers - The list of element matchers to match any elements of the matched iterable collection
against.public boolean matches(java.lang.Iterable<? extends T> target)
target - The instance to be matched.true if the given element is matched by this matcher or false otherwise.public java.lang.String toString()
toString in class java.lang.Object