@HashCodeAndEqualsPlugin.Enhance public static class Default.Binder.TypeLocator.ForType extends Object implements Default.Binder.TypeLocator
Default.Binder.TypeLocator.ForParameterType, Default.Binder.TypeLocator.ForType
Modifier | Constructor and Description |
---|---|
protected |
ForType(TypeDescription typeDescription)
Creates a new type locator for a given type.
|
Modifier and Type | Method and Description |
---|---|
protected static Default.Binder.TypeLocator |
of(TypeDescription typeDescription)
Resolves a type locator based upon an annotation value.
|
TypeDescription |
resolve(TypeDescription.Generic parameterType)
Resolves the target type.
|
protected ForType(TypeDescription typeDescription)
typeDescription
- The type to be returned upon resolution.protected static Default.Binder.TypeLocator of(TypeDescription typeDescription)
typeDescription
- The annotation's value.public TypeDescription resolve(TypeDescription.Generic parameterType)
resolve
in interface Default.Binder.TypeLocator
parameterType
- The type of the target parameter.Copyright © 2014–2019. All rights reserved.