Class TypeVariableImpl<D extends java.lang.reflect.GenericDeclaration>

  • All Implemented Interfaces:
    java.lang.reflect.AnnotatedElement, java.lang.reflect.Type, java.lang.reflect.TypeVariable<D>

    public class TypeVariableImpl<D extends java.lang.reflect.GenericDeclaration>
    extends java.lang.Object
    implements java.lang.reflect.TypeVariable<D>
    • Field Summary

      Fields 
      Modifier and Type Field 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 Summary

      Constructors 
      Constructor Description
      TypeVariableImpl​(java.lang.reflect.TypeVariable<D> variable, java.lang.annotation.Annotation[] annotations, java.lang.reflect.AnnotatedType[] bounds)  
      TypeVariableImpl​(java.lang.reflect.TypeVariable<D> variable, java.lang.reflect.AnnotatedType[] bounds)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private java.lang.String annotationsString()  
      boolean equals​(java.lang.Object other)  
      java.lang.reflect.AnnotatedType[] getAnnotatedBounds()  
      <T extends java.lang.annotation.Annotation>
      T
      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()  
      • 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 Detail

      • annotations

        private final java.util.Map<java.lang.Class<? extends java.lang.annotation.Annotation>,​java.lang.annotation.Annotation> annotations
      • genericDeclaration

        private final D extends java.lang.reflect.GenericDeclaration genericDeclaration
      • name

        private final java.lang.String name
      • bounds

        private final java.lang.reflect.AnnotatedType[] bounds
    • Constructor Detail

      • TypeVariableImpl

        TypeVariableImpl​(java.lang.reflect.TypeVariable<D> variable,
                         java.lang.reflect.AnnotatedType[] bounds)
      • TypeVariableImpl

        TypeVariableImpl​(java.lang.reflect.TypeVariable<D> variable,
                         java.lang.annotation.Annotation[] annotations,
                         java.lang.reflect.AnnotatedType[] bounds)
    • Method Detail

      • getBounds

        public java.lang.reflect.Type[] getBounds()
        Specified by:
        getBounds in interface java.lang.reflect.TypeVariable<D extends java.lang.reflect.GenericDeclaration>
      • getGenericDeclaration

        public D getGenericDeclaration()
        Specified by:
        getGenericDeclaration in interface java.lang.reflect.TypeVariable<D extends java.lang.reflect.GenericDeclaration>
      • getName

        public java.lang.String getName()
        Specified by:
        getName in interface java.lang.reflect.TypeVariable<D extends java.lang.reflect.GenericDeclaration>
      • getAnnotatedBounds

        public java.lang.reflect.AnnotatedType[] getAnnotatedBounds()
        Specified by:
        getAnnotatedBounds in interface java.lang.reflect.TypeVariable<D extends java.lang.reflect.GenericDeclaration>
      • getAnnotation

        public <T extends java.lang.annotation.Annotation> T getAnnotation​(java.lang.Class<T> annotationClass)
        Specified by:
        getAnnotation in interface java.lang.reflect.AnnotatedElement
      • getAnnotations

        public java.lang.annotation.Annotation[] getAnnotations()
        Specified by:
        getAnnotations in interface java.lang.reflect.AnnotatedElement
      • getDeclaredAnnotations

        public java.lang.annotation.Annotation[] getDeclaredAnnotations()
        Specified by:
        getDeclaredAnnotations in interface java.lang.reflect.AnnotatedElement
      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • annotationsString

        private java.lang.String annotationsString()