protected static class TypeDescription.Generic.Visitor.Assigner.Dispatcher.ForParameterizedType.ParameterAssigner.ContravariantBinding extends Object implements 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
Modifier | Constructor and Description |
---|---|
protected |
ContravariantBinding(TypeDescription.Generic lowerBound)
Creates a new dispatcher for contravariant parameter of a parameterized type.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isAssignableFrom(TypeDescription.Generic typeDescription)
Checks if the represented type is a super type of the type that is supplied as an argument.
|
protected ContravariantBinding(TypeDescription.Generic lowerBound)
lowerBound
- The lower bound type of a contravariant parameter.public boolean isAssignableFrom(TypeDescription.Generic typeDescription)
TypeDescription.Generic.Visitor.Assigner.Dispatcher
isAssignableFrom
in interface TypeDescription.Generic.Visitor.Assigner.Dispatcher
typeDescription
- The type to check for being assignable to the represented type.true
if the represented type is assignable to the supplied type.Copyright © 2014–2017. All rights reserved.