Top Description Fields Constructors Methods
org.easymock.bytebuddy.matcher

public Class CollectionOneToOneMatcher<T>

extends ElementMatcher.Junction.ForNonNullValues<Iterable<? extends T>>
Class Inheritance
Annotations
@Enhance
Type Parameters
<T>
The type of the matched entity.
Imports
org.easymock.bytebuddy.build.HashCodeAndEqualsPlugin, java.util.Collection, .Iterator, .List

An element matcher that matches a given iterable collection to a list of matchers on a per-element basis. For a successful match, any element of the matched iterable collection must be successfully matched by a next matcher of the supplied list of element matchers. For this to be possible, the matched iterable collection and the supplied list of element matchers contain the same number of elements.

Field Summary

Modifier and TypeField and Description
private final List<? extends ElementMatcher<? super T>>
matchers

The list of element matchers to match any elements of the matched iterable collection against.

Constructor Summary

AccessConstructor and Description
public
CollectionOneToOneMatcher(List<? extends ElementMatcher<? super T>>
The list of element matchers to match any elements of the matched iterable collection against.
matchers
)

Creates a new matcher that compares a matched iterable collection against a list of element matchers.

Method Summary

Modifier and TypeMethod and Description
protected boolean
doMatch(Iterable<? extends T>
The instance to be matched.
target
)

Implements abstract org.easymock.bytebuddy.matcher.ElementMatcher.Junction.ForNonNullValues.doMatch.

Matches the supplied value if it was found not to be null.
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from org.easymock.bytebuddy.matcher.ElementMatcher.Junction.ForNonNullValues:
matches

Field Detail

matchersback to summary
private final List<? extends ElementMatcher<? super T>> matchers

The list of element matchers to match any elements of the matched iterable collection against.

Constructor Detail

CollectionOneToOneMatcherback to summary
public CollectionOneToOneMatcher(List<? extends ElementMatcher<? super T>> matchers)

Creates a new matcher that compares a matched iterable collection against a list of element matchers.

Parameters
matchers:List<? extends ElementMatcher<? super T>>

The list of element matchers to match any elements of the matched iterable collection against.

Method Detail

doMatchback to summary
protected boolean doMatch(Iterable<? extends T> target)

Implements abstract org.easymock.bytebuddy.matcher.ElementMatcher.Junction.ForNonNullValues.doMatch.

Doc from org.easymock.bytebuddy.matcher.ElementMatcher.Junction.ForNonNullValues.doMatch.

Matches the supplied value if it was found not to be null.

Parameters
target:Iterable<? extends T>

The instance to be matched.

Returns:boolean

true if the given element is matched by this matcher or false otherwise.

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object

Annotations
@Override