content: package kotlin.jvm.internal;
  
  import java.util.List;
  import kotlin.Metadata;
  import kotlin.collections.CollectionsKt;
  import kotlin.reflect.KType;
  import kotlin.reflect.KTypeParameter;
  import kotlin.reflect.KVariance;
  
  @Metadata(d1 = {"\u0000>\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u000e\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000b\n\u0002\b\u0002\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0002\b\r\n\u0002\u0010\b\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0003\b\u0007\u0018\u0000 \u001f2\u00020\u0001:\u0001\u001fB'\u0012\b\u0010\u0002\u001a\u0004\u0018\u00010\u0003\u0012\u0006\u0010\u0004\u001a\u00020\u0005\u0012\u0006\u0010\u0006\u001a\u00020\u0007\u0012\u0006\u0010\b\u001a\u00020\t¢\u0006\u0002\u0010\nJ\u0013\u0010\u0018\u001a\u00020\t2\b\u0010\u0019\u001a\u0004\u0018\u00010\u0003H\u0002J\b\u0010\u001a\u001a\u00020\u001bH\u0016J\u0014\u0010\u001c\u001a\u00020\u001d2\f\u0010\u0011\u001a\b\u0012\u0004\u0012\u00020\r0\fJ\b\u0010\u001e\u001a\u00020\u0005H\u0016R\u0016\u0010\u000b\u001a\n\u0012\u0004\u0012\u00020\r\u0018\u00010\fX\u000e¢\u0006\u0002\n\u0000R\u0010\u0010\u0002\u001a\u0004\u0018\u00010\u0003X\u0004¢\u0006\u0002\n\u0000R\u0014\u0010\b\u001a\u00020\tX\u0004¢\u0006\b\n\u0000\u001a\u0004\b\b\u0010\u000eR\u0014\u0010\u0004\u001a\u00020\u0005X\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u000f\u0010\u0010R \u0010\u0011\u001a\b\u0012\u0004\u0012\u00020\r0\f8VX\u0004¢\u0006\f\u0012\u0004\b\u0012\u0010\u0013\u001a\u0004\b\u0014\u0010\u0015R\u0014\u0010\u0006\u001a\u00020\u0007X\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u0016\u0010\u0017¨\u0006 "}, d2 = {"Lkotlin/jvm/internal/TypeParameterReference;", "Lkotlin/reflect/KTypeParameter;", "container", "", "name", "", "variance", "Lkotlin/reflect/KVariance;", "isReified", "", "(Ljava/lang/Object;Ljava/lang/String;Lkotlin/reflect/KVariance;Z)V", "bounds", "", "Lkotlin/reflect/KType;", "()Z", "getName", "()Ljava/lang/String;", "upperBounds", "getUpperBounds$annotations", "()V", "getUpperBounds", "()Ljava/util/List;", "getVariance", "()Lkotlin/reflect/KVariance;", "equals", "other", "hashCode", "", "setUpperBounds", "", "toString", "Companion", "kotlin-stdlib"}, k = 1, mv = {1, 7, 1}, xi = 48)
  /* compiled from: TypeParameterReference.kt */
  public final class TypeParameterReference implements KTypeParameter {
      public static final Companion Companion = new Companion((DefaultConstructorMarker) null);
      private volatile List<? extends KType> bounds;
      private final Object container;
      private final boolean isReified;
      private final String name;
      private final KVariance variance;
  
      @Metadata(d1 = {"\u0000\u0018\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0000\n\u0002\u0018\u0002\n\u0000\b\u0003\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002J\u000e\u0010\u0003\u001a\u00020\u00042\u0006\u0010\u0005\u001a\u00020\u0006¨\u0006\u0007"}, d2 = {"Lkotlin/jvm/internal/TypeParameterReference$Companion;", "", "()V", "toString", "", "typeParameter", "Lkotlin/reflect/KTypeParameter;", "kotlin-stdlib"}, k = 1, mv = {1, 7, 1}, xi = 48)
      /* compiled from: TypeParameterReference.kt */
      public static final class Companion {
  
          @Metadata(k = 3, mv = {1, 7, 1}, xi = 48)
          /* compiled from: TypeParameterReference.kt */
          public /* synthetic */ class WhenMappings {
              public static final /* synthetic */ int[] $EnumSwitchMapping$0;
  
              static {
                  int[] iArr = new int[KVariance.values().length];
                  iArr[KVariance.INVARIANT.ordinal()] = 1;
                  iArr[KVariance.IN.ordinal()] = 2;
                  iArr[KVariance.OUT.ordinal()] = 3;
                  $EnumSwitchMapping$0 = iArr;
              }
          }
  
          private Companion() {
          }
  
          public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
              this();
          }
  
          public final String toString(KTypeParameter typeParameter) {
              Intrinsics.checkNotNullParameter(typeParameter, "typeParameter");
              StringBuilder sb = new StringBuilder();
              StringBuilder sb2 = sb;
              switch (WhenMappings.$EnumSwitchMapping$0[typeParameter.getVariance().ordinal()]) {
                  case 2:
                      sb2.append("in ");
                      break;
                  case 3:
                      sb2.append("out ");
                      break;
              }
              sb2.append(typeParameter.getName());
              String sb3 = sb.toString();
              Intrinsics.checkNotNullExpressionValue(sb3, "StringBuilder().apply(builderAction).toString()");
              return sb3;
          }
      }
  
      public TypeParameterReference(Object container2, String name2, KVariance variance2, boolean isReified2) {
          Intrinsics.checkNotNullParameter(name2, "name");
          Intrinsics.checkNotNullParameter(variance2, "variance");
          this.container = container2;
          this.name = name2;
          this.variance = variance2;
          this.isReified = isReified2;
      }
  
      public static /* synthetic */ void getUpperBounds$annotations() {
      }
  
      public boolean equals(Object other) {
          return (other instanceof TypeParameterReference) && Intrinsics.areEqual(this.container, ((TypeParameterReference) other).container) && Intrinsics.areEqual((Object) getName(), (Object) ((TypeParameterReference) other).getName());
      }
  
      public String getName() {
          return this.name;
      }
  
      public List<KType> getUpperBounds() {
          List<? extends KType> list = this.bounds;
          if (list != null) {
              return list;
          }
          List<? extends KType> listOf = CollectionsKt.listOf(Reflection.nullableTypeOf(Object.class));
          this.bounds = listOf;
          return listOf;
      }
  
      public KVariance getVariance() {
          return this.variance;
      }
  
      public int hashCode() {
          Object obj = this.container;
          return ((obj != null ? obj.hashCode() : 0) * 31) + getName().hashCode();
      }
  
      public boolean isReified() {
          return this.isReified;
      }
  
      public final void setUpperBounds(List<? extends KType> upperBounds) {
          Intrinsics.checkNotNullParameter(upperBounds, "upperBounds");
          if (this.bounds == null) {
              this.bounds = upperBounds;
              return;
          }
          throw new IllegalStateException(("Upper bounds of type parameter '" + this + "' have already been initialized.").toString());
      }
  
      public String toString() {
          return Companion.toString(this);
      }
  }
  