T
- The type of the matched entity.@HashCodeAndEqualsPlugin.Enhance public class CollectionErasureMatcher<T extends java.lang.Iterable<? extends TypeDefinition>> extends ElementMatcher.Junction.AbstractBase<T>
ElementMatcher.Junction.AbstractBase<V>, ElementMatcher.Junction.Conjunction<W>, ElementMatcher.Junction.Disjunction<W>
ElementMatcher.Junction<S>
Modifier and Type | Field and Description |
---|---|
private ElementMatcher<? super java.lang.Iterable<? extends TypeDescription>> |
matcher
The matcher to be applied to the raw types.
|
Constructor and Description |
---|
CollectionErasureMatcher(ElementMatcher<? super java.lang.Iterable<? extends TypeDescription>> matcher)
Creates a new raw type matcher.
|
Modifier and Type | Method and Description |
---|---|
boolean |
matches(T target)
Matches a target against this element matcher.
|
java.lang.String |
toString() |
and, or
private final ElementMatcher<? super java.lang.Iterable<? extends TypeDescription>> matcher
public CollectionErasureMatcher(ElementMatcher<? super java.lang.Iterable<? extends TypeDescription>> matcher)
matcher
- The matcher to be applied to the raw types.public boolean matches(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