public class TypeVariableImpl<D extends java.lang.reflect.GenericDeclaration>
extends java.lang.Object
implements java.lang.reflect.TypeVariable<D>
Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.lang.Class<? extends java.lang.annotation.Annotation>,java.lang.annotation.Annotation> |
annotations |
private java.lang.reflect.AnnotatedType[] |
bounds |
private D |
genericDeclaration |
private java.lang.String |
name |
Constructor and Description |
---|
TypeVariableImpl(java.lang.reflect.TypeVariable<D> variable,
java.lang.reflect.AnnotatedType[] bounds) |
TypeVariableImpl(java.lang.reflect.TypeVariable<D> variable,
java.lang.annotation.Annotation[] annotations,
java.lang.reflect.AnnotatedType[] bounds) |
Modifier and Type | Method and Description |
---|---|
private static java.lang.reflect.AnnotatedType[] |
annotateBounds(java.lang.reflect.Type[] bounds) |
private java.lang.String |
annotationsString() |
boolean |
equals(java.lang.Object other) |
java.lang.reflect.AnnotatedType[] |
getAnnotatedBounds() |
<T extends java.lang.annotation.Annotation> |
getAnnotation(java.lang.Class<T> annotationClass) |
java.lang.annotation.Annotation[] |
getAnnotations() |
java.lang.reflect.Type[] |
getBounds() |
java.lang.annotation.Annotation[] |
getDeclaredAnnotations() |
D |
getGenericDeclaration() |
java.lang.String |
getName() |
int |
hashCode() |
java.lang.String |
toString() |
private final java.util.Map<java.lang.Class<? extends java.lang.annotation.Annotation>,java.lang.annotation.Annotation> annotations
private final D extends java.lang.reflect.GenericDeclaration genericDeclaration
private final java.lang.String name
private final java.lang.reflect.AnnotatedType[] bounds
TypeVariableImpl(java.lang.reflect.TypeVariable<D> variable, java.lang.reflect.AnnotatedType[] bounds)
TypeVariableImpl(java.lang.reflect.TypeVariable<D> variable, java.lang.annotation.Annotation[] annotations, java.lang.reflect.AnnotatedType[] bounds)
private static java.lang.reflect.AnnotatedType[] annotateBounds(java.lang.reflect.Type[] bounds)
public java.lang.reflect.Type[] getBounds()
getBounds
in interface java.lang.reflect.TypeVariable<D extends java.lang.reflect.GenericDeclaration>
public D getGenericDeclaration()
getGenericDeclaration
in interface java.lang.reflect.TypeVariable<D extends java.lang.reflect.GenericDeclaration>
public java.lang.String getName()
getName
in interface java.lang.reflect.TypeVariable<D extends java.lang.reflect.GenericDeclaration>
public java.lang.reflect.AnnotatedType[] getAnnotatedBounds()
getAnnotatedBounds
in interface java.lang.reflect.TypeVariable<D extends java.lang.reflect.GenericDeclaration>
public <T extends java.lang.annotation.Annotation> T getAnnotation(java.lang.Class<T> annotationClass)
getAnnotation
in interface java.lang.reflect.AnnotatedElement
public java.lang.annotation.Annotation[] getAnnotations()
getAnnotations
in interface java.lang.reflect.AnnotatedElement
public java.lang.annotation.Annotation[] getDeclaredAnnotations()
getDeclaredAnnotations
in interface java.lang.reflect.AnnotatedElement
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
private java.lang.String annotationsString()