145 lines
4.4 KiB
Java
145 lines
4.4 KiB
Java
|
package o;
|
||
|
|
||
|
import java.util.ArrayList;
|
||
|
import java.util.Collection;
|
||
|
import java.util.Collections;
|
||
|
import java.util.Comparator;
|
||
|
import java.util.Iterator;
|
||
|
import java.util.List;
|
||
|
|
||
|
/* loaded from: classes.dex */
|
||
|
public class gdL extends C14965gdK {
|
||
|
|
||
|
/* JADX INFO: Add missing generic type declarations: [T] */
|
||
|
/* loaded from: classes.dex */
|
||
|
public static final class LWm<T> implements Iterable<T>, InterfaceC14932gcO {
|
||
|
private gdE a;
|
||
|
|
||
|
public LWm(gdE gde) {
|
||
|
this.a = gde;
|
||
|
}
|
||
|
|
||
|
@Override // java.lang.Iterable
|
||
|
public final Iterator<T> iterator() {
|
||
|
return this.a.e();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Add missing generic type declarations: [T] */
|
||
|
/* loaded from: classes.dex */
|
||
|
public static final class IeS<T> implements gdE<T> {
|
||
|
private gdE<T> b;
|
||
|
private Comparator<? super T> d;
|
||
|
|
||
|
/* JADX WARN: Multi-variable type inference failed */
|
||
|
public IeS(gdE<? extends T> gde, Comparator<? super T> comparator) {
|
||
|
this.b = gde;
|
||
|
this.d = comparator;
|
||
|
}
|
||
|
|
||
|
@Override // o.gdE
|
||
|
public final Iterator<T> e() {
|
||
|
gdE<T> gde = this.b;
|
||
|
C14957gcv.e(gde, "");
|
||
|
List list = (List) C14964gdG.e(gde, new ArrayList());
|
||
|
Comparator<? super T> comparator = this.d;
|
||
|
C14957gcv.e(list, "");
|
||
|
C14957gcv.e(comparator, "");
|
||
|
if (list.size() > 1) {
|
||
|
Collections.sort(list, comparator);
|
||
|
}
|
||
|
return list.iterator();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public static final <T, C extends Collection<? super T>> C e(gdE<? extends T> gde, C c) {
|
||
|
C14957gcv.e(gde, "");
|
||
|
C14957gcv.e(c, "");
|
||
|
Iterator<? extends T> e = gde.e();
|
||
|
while (e.hasNext()) {
|
||
|
c.add(e.next());
|
||
|
}
|
||
|
return c;
|
||
|
}
|
||
|
|
||
|
public static final <T> List<T> e(gdE<? extends T> gde) {
|
||
|
C14957gcv.e(gde, "");
|
||
|
C14957gcv.e(gde, "");
|
||
|
return C14881gav.a((List) C14964gdG.e(gde, new ArrayList()));
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Add missing generic type declarations: [T] */
|
||
|
/* loaded from: classes.dex */
|
||
|
public static final class HBt<T> extends AbstractC14961gcz implements InterfaceC14894gbR<T, Boolean> {
|
||
|
public static final HBt e = new HBt();
|
||
|
|
||
|
@Override // o.InterfaceC14894gbR
|
||
|
public final /* synthetic */ Boolean invoke(Object obj) {
|
||
|
return Boolean.valueOf(obj == null);
|
||
|
}
|
||
|
|
||
|
HBt() {
|
||
|
super(1);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public static final <T> String e(gdE<? extends T> gde, CharSequence charSequence, CharSequence charSequence2, CharSequence charSequence3, CharSequence charSequence4) {
|
||
|
C14957gcv.e(gde, "");
|
||
|
C14957gcv.e(charSequence, "");
|
||
|
C14957gcv.e(charSequence2, "");
|
||
|
C14957gcv.e(charSequence3, "");
|
||
|
C14957gcv.e(charSequence4, "");
|
||
|
StringBuilder sb = new StringBuilder();
|
||
|
C14957gcv.e(gde, "");
|
||
|
C14957gcv.e(sb, "");
|
||
|
C14957gcv.e(charSequence, "");
|
||
|
C14957gcv.e(charSequence2, "");
|
||
|
C14957gcv.e(charSequence3, "");
|
||
|
C14957gcv.e(charSequence4, "");
|
||
|
sb.append(charSequence2);
|
||
|
Iterator<? extends T> e = gde.e();
|
||
|
int i = 0;
|
||
|
while (e.hasNext()) {
|
||
|
T next = e.next();
|
||
|
i++;
|
||
|
if (i > 1) {
|
||
|
sb.append(charSequence);
|
||
|
}
|
||
|
gdZ.e(sb, next, (InterfaceC14894gbR) null);
|
||
|
}
|
||
|
sb.append(charSequence3);
|
||
|
String obj = sb.toString();
|
||
|
C14957gcv.c((Object) obj, "");
|
||
|
return obj;
|
||
|
}
|
||
|
|
||
|
public static final <T> gdE<T> e(gdE<? extends T> gde, int i) {
|
||
|
C14957gcv.e(gde, "");
|
||
|
if (i >= 0) {
|
||
|
if (i == 0) {
|
||
|
return C14992gdx.c;
|
||
|
}
|
||
|
return gde instanceof gdA ? ((gdA) gde).d(i) : new gdJ(gde, i);
|
||
|
}
|
||
|
StringBuilder sb = new StringBuilder("Requested element count ");
|
||
|
sb.append(i);
|
||
|
sb.append(" is less than zero.");
|
||
|
throw new IllegalArgumentException(sb.toString().toString());
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Add missing generic type declarations: [T] */
|
||
|
/* loaded from: classes.dex */
|
||
|
public static final class RVV<T> extends AbstractC14961gcz implements InterfaceC14894gbR<T, T> {
|
||
|
public static final RVV b = new RVV();
|
||
|
|
||
|
@Override // o.InterfaceC14894gbR
|
||
|
public final T invoke(T t) {
|
||
|
return t;
|
||
|
}
|
||
|
|
||
|
RVV() {
|
||
|
super(1);
|
||
|
}
|
||
|
}
|
||
|
}
|