Module io.leangen.geantyref
Package io.leangen.geantyref
Class TypeVariableImpl<D extends GenericDeclaration>
java.lang.Object
io.leangen.geantyref.TypeVariableImpl<D>
- All Implemented Interfaces:
AnnotatedElement
,Type
,TypeVariable<D>
public class TypeVariableImpl<D extends GenericDeclaration>
extends Object
implements TypeVariable<D>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Map
<Class<? extends Annotation>, Annotation> private final AnnotatedType[]
private final D
private final String
-
Constructor Summary
ConstructorsConstructorDescriptionTypeVariableImpl
(TypeVariable<D> variable, Annotation[] annotations, AnnotatedType[] bounds) TypeVariableImpl
(TypeVariable<D> variable, AnnotatedType[] bounds) -
Method Summary
Modifier and TypeMethodDescriptionprivate String
boolean
<T extends Annotation>
TgetAnnotation
(Class<T> annotationClass) Type[]
getName()
int
hashCode()
toString()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.reflect.AnnotatedElement
getAnnotationsByType, getDeclaredAnnotation, getDeclaredAnnotationsByType, isAnnotationPresent
Methods inherited from interface java.lang.reflect.Type
getTypeName
-
Field Details
-
annotations
-
genericDeclaration
-
name
-
bounds
-
-
Constructor Details
-
TypeVariableImpl
TypeVariableImpl(TypeVariable<D> variable, AnnotatedType[] bounds) -
TypeVariableImpl
TypeVariableImpl(TypeVariable<D> variable, Annotation[] annotations, AnnotatedType[] bounds)
-
-
Method Details
-
getBounds
- Specified by:
getBounds
in interfaceTypeVariable<D extends GenericDeclaration>
-
getGenericDeclaration
- Specified by:
getGenericDeclaration
in interfaceTypeVariable<D extends GenericDeclaration>
-
getName
- Specified by:
getName
in interfaceTypeVariable<D extends GenericDeclaration>
-
getAnnotatedBounds
- Specified by:
getAnnotatedBounds
in interfaceTypeVariable<D extends GenericDeclaration>
-
getAnnotation
- Specified by:
getAnnotation
in interfaceAnnotatedElement
-
getAnnotations
- Specified by:
getAnnotations
in interfaceAnnotatedElement
-
getDeclaredAnnotations
- Specified by:
getDeclaredAnnotations
in interfaceAnnotatedElement
-
equals
-
hashCode
public int hashCode() -
toString
-
annotationsString
-