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.
-
Nested Class Summary
Nested classes/interfaces inherited from interface TypeDescription.Generic.Visitor.Assigner.Dispatcher
TypeDescription.Generic.Visitor.Assigner.Dispatcher.AbstractBase, TypeDescription.Generic.Visitor.Assigner.Dispatcher.ForGenericArray, TypeDescription.Generic.Visitor.Assigner.Dispatcher.ForNonGenericType, TypeDescription.Generic.Visitor.Assigner.Dispatcher.ForParameterizedType, TypeDescription.Generic.Visitor.Assigner.Dispatcher.ForTypeVariable -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final TypeDescription.GenericThe lower bound type of a covariant parameter. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCovariantBinding(TypeDescription.Generic upperBound) Creates a new dispatcher for covariant parameter of a parameterized type. -
Method Summary
Modifier and TypeMethodDescriptionbooleanisAssignableFrom(TypeDescription.Generic typeDescription) Checks if the represented type is a super type of the type that is supplied as an argument.
-
Field Details
-
upperBound
The lower bound type of a covariant parameter.
-
-
Constructor Details
-
CovariantBinding
Creates a new dispatcher for covariant parameter of a parameterized type.- Parameters:
upperBound- The upper bound type of a covariant parameter.
-
-
Method Details
-
isAssignableFrom
Checks if the represented type is a super type of the type that is supplied as an argument.- Specified by:
isAssignableFromin interfaceTypeDescription.Generic.Visitor.Assigner.Dispatcher- Parameters:
typeDescription- The type to check for being assignable to the represented type.- Returns:
trueif the represented type is assignable to the supplied type.
-