Class GsonTypes.WildcardTypeImpl

java.lang.Object
com.google.gson.internal.GsonTypes.WildcardTypeImpl
All Implemented Interfaces:
Type, WildcardType
Enclosing class:
GsonTypes

private static final class GsonTypes.WildcardTypeImpl extends Object implements WildcardType
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
  • Constructor Details

    • WildcardTypeImpl

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