Class JandexReflection.WildcardTypeImpl

  • All Implemented Interfaces:
    java.lang.reflect.Type, java.lang.reflect.WildcardType
    Enclosing class:
    JandexReflection

    private static class JandexReflection.WildcardTypeImpl
    extends java.lang.Object
    implements java.lang.reflect.WildcardType
    An implementation of WildcardType that is compatible with the JDK's implementation (as in, the equals() and hashCode() methods work as expected).
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private WildcardTypeImpl​(java.lang.reflect.Type[] upperBound, java.lang.reflect.Type[] lowerBound)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      java.lang.reflect.Type[] getLowerBounds()  
      java.lang.reflect.Type[] getUpperBounds()  
      int hashCode()  
      java.lang.String toString()  
      (package private) static java.lang.reflect.WildcardType unbounded()  
      (package private) static java.lang.reflect.WildcardType withLowerBound​(java.lang.reflect.Type type)  
      (package private) static java.lang.reflect.WildcardType withUpperBound​(java.lang.reflect.Type type)  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.lang.reflect.Type

        getTypeName
    • Field Detail

      • DEFAULT_UPPER_BOUND

        private static final java.lang.reflect.Type[] DEFAULT_UPPER_BOUND
      • DEFAULT_LOWER_BOUND

        private static final java.lang.reflect.Type[] DEFAULT_LOWER_BOUND
      • UNBOUNDED

        private static final java.lang.reflect.WildcardType UNBOUNDED
      • upperBound

        private final java.lang.reflect.Type[] upperBound
      • lowerBound

        private final java.lang.reflect.Type[] lowerBound
    • Constructor Detail

      • WildcardTypeImpl

        private WildcardTypeImpl​(java.lang.reflect.Type[] upperBound,
                                 java.lang.reflect.Type[] lowerBound)
    • Method Detail

      • unbounded

        static java.lang.reflect.WildcardType unbounded()
      • withUpperBound

        static java.lang.reflect.WildcardType withUpperBound​(java.lang.reflect.Type type)
      • withLowerBound

        static java.lang.reflect.WildcardType withLowerBound​(java.lang.reflect.Type type)
      • getUpperBounds

        public java.lang.reflect.Type[] getUpperBounds()
        Specified by:
        getUpperBounds in interface java.lang.reflect.WildcardType
      • getLowerBounds

        public java.lang.reflect.Type[] getLowerBounds()
        Specified by:
        getLowerBounds in interface java.lang.reflect.WildcardType
      • equals

        public boolean equals​(java.lang.Object obj)
        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