package o; /* loaded from: classes6.dex */ public final class gpU extends AbstractC15346gnv { public AbstractC15317gnH c; public C15314gnC e; public gpU(AbstractC15317gnH abstractC15317gnH) { if (abstractC15317gnH.e() <= 0 || abstractC15317gnH.e() > 2) { StringBuilder sb = new StringBuilder("Bad sequence size: "); sb.append(abstractC15317gnH.e()); throw new IllegalArgumentException(sb.toString()); } this.e = C15314gnC.d(abstractC15317gnH.d(0)); if (abstractC15317gnH.e() > 1) { this.c = AbstractC15317gnH.a(abstractC15317gnH.d(1)); } } @Override // o.AbstractC15346gnv, o.InterfaceC15342gnr public final AbstractC15315gnE i() { C15343gns c15343gns = new C15343gns(); c15343gns.a.addElement(this.e); AbstractC15317gnH abstractC15317gnH = this.c; if (abstractC15317gnH != null) { c15343gns.a.addElement(abstractC15317gnH); } return new C15385goy(c15343gns); } public final String toString() { gpY gpy; StringBuffer stringBuffer = new StringBuffer("Policy information: "); stringBuffer.append(this.e); if (this.c != null) { StringBuffer stringBuffer2 = new StringBuffer(); for (int i = 0; i < this.c.e(); i++) { if (stringBuffer2.length() != 0) { stringBuffer2.append(", "); } InterfaceC15342gnr d = this.c.d(i); if (d instanceof gpY) { gpy = (gpY) d; } else { gpy = d != null ? new gpY(AbstractC15317gnH.a(d)) : null; } stringBuffer2.append(gpy); } stringBuffer.append("["); stringBuffer.append(stringBuffer2); stringBuffer.append("]"); } return stringBuffer.toString(); } }