Class TypeDescription.Generic.Visitor.Assigner.Dispatcher.ForParameterizedType.ParameterAssigner.CovariantBinding

java.lang.Object
net.bytebuddy.description.type.TypeDescription.Generic.Visitor.Assigner.Dispatcher.ForParameterizedType.ParameterAssigner.CovariantBinding
All Implemented Interfaces:
TypeDescription.Generic.Visitor.Assigner.Dispatcher
Enclosing class:
TypeDescription.Generic.Visitor.Assigner.Dispatcher.ForParameterizedType.ParameterAssigner

@Enhance protected static class TypeDescription.Generic.Visitor.Assigner.Dispatcher.ForParameterizedType.ParameterAssigner.CovariantBinding extends Object implements TypeDescription.Generic.Visitor.Assigner.Dispatcher
A dispatcher for an covariant parameter of a parameterized type, i.e. a type that is the lower bound of a wildcard.
  • Field Details

  • Constructor Details

    • CovariantBinding

      protected CovariantBinding(TypeDescription.Generic upperBound)
      Creates a new dispatcher for covariant parameter of a parameterized type.
      Parameters:
      upperBound - The upper bound type of a covariant parameter.
  • Method Details

    • isAssignableFrom

      public boolean isAssignableFrom(TypeDescription.Generic typeDescription)
      Checks if the represented type is a super type of the type that is supplied as an argument.
      Specified by:
      isAssignableFrom in interface TypeDescription.Generic.Visitor.Assigner.Dispatcher
      Parameters:
      typeDescription - The type to check for being assignable to the represented type.
      Returns:
      true if the represented type is assignable to the supplied type.