Class $Gson$Types.WildcardTypeImpl

java.lang.Object
com.google.gson.internal.$Gson$Types.WildcardTypeImpl
All Implemented Interfaces:
Serializable, Type, WildcardType
Enclosing class:
$Gson$Types

private static final class $Gson$Types.WildcardTypeImpl extends Object implements WildcardType, Serializable
The WildcardType interface supports multiple upper bounds and multiple lower bounds. We only support what the target Java version supports - at most one bound, see also https://bugs.openjdk.java.net/browse/JDK-8250660. If a lower bound is set, the upper bound must be Object.class.
  • Field Details

    • upperBound

      private final Type upperBound
    • lowerBound

      private final Type lowerBound
    • serialVersionUID

      private static final long serialVersionUID
      See Also:
  • Constructor Details

    • WildcardTypeImpl

      public WildcardTypeImpl(Type[] upperBounds, Type[] lowerBounds)
  • Method Details