Class MoreTypes.WildcardTypeImpl

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

    public static class MoreTypes.WildcardTypeImpl
    extends java.lang.Object
    implements java.lang.reflect.WildcardType
    The WildcardType interface supports multiple upper bounds and multiple lower bounds. We only support what the Java 6 language needs - at most one bound. If a lower bound is set, the upper bound must be Object.class.
    • Constructor Summary

      Constructors 
      Constructor Description
      WildcardTypeImpl​(java.lang.reflect.Type[] upperBounds, java.lang.reflect.Type[] lowerBounds)  
    • Constructor Detail

      • WildcardTypeImpl

        public WildcardTypeImpl​(java.lang.reflect.Type[] upperBounds,
                                java.lang.reflect.Type[] lowerBounds)
    • Method Detail

      • 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
      • isFullySpecified

        public boolean isFullySpecified()
      • 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