Class CollectionErasureMatcher<T extends Iterable<? extends TypeDefinition>>

java.lang.Object
net.bytebuddy.matcher.ElementMatcher.Junction.AbstractBase<T>
net.bytebuddy.matcher.CollectionErasureMatcher<T>
Type Parameters:
T - The type of the matched entity.
All Implemented Interfaces:
ElementMatcher<T>, ElementMatcher.Junction<T>

@Enhance public class CollectionErasureMatcher<T extends Iterable<? extends TypeDefinition>> extends ElementMatcher.Junction.AbstractBase<T>
An element matcher that matches a collection of types by their erasures.
  • Field Details

  • Constructor Details

    • CollectionErasureMatcher

      public CollectionErasureMatcher(ElementMatcher<? super Iterable<? extends TypeDescription>> matcher)
      Creates a new raw type matcher.
      Parameters:
      matcher - The matcher to be applied to the raw types.
  • Method Details

    • matches

      public boolean matches(T target)
      Matches a target against this element matcher.
      Parameters:
      target - The instance to be matched.
      Returns:
      true if the given element is matched by this matcher or false otherwise.
    • toString

      public String toString()
      Overrides:
      toString in class Object