38 lines
1.2 KiB
Java
38 lines
1.2 KiB
Java
package o;
|
|
|
|
import java.util.Comparator;
|
|
|
|
/* loaded from: classes6.dex */
|
|
public final class gaY {
|
|
|
|
/* loaded from: classes6.dex */
|
|
public static final class RVV<T> implements Comparator {
|
|
private InterfaceC14894gbR<T, Comparable<?>>[] d;
|
|
|
|
@Override // java.util.Comparator
|
|
public final int compare(T t, T t2) {
|
|
int compareTo;
|
|
for (InterfaceC14894gbR<T, Comparable<?>> interfaceC14894gbR : this.d) {
|
|
Comparable<?> invoke = interfaceC14894gbR.invoke(t);
|
|
Comparable<?> invoke2 = interfaceC14894gbR.invoke(t2);
|
|
if (invoke == invoke2) {
|
|
compareTo = 0;
|
|
} else if (invoke == null) {
|
|
compareTo = -1;
|
|
} else {
|
|
compareTo = invoke2 == null ? 1 : invoke.compareTo(invoke2);
|
|
}
|
|
if (compareTo != 0) {
|
|
return compareTo;
|
|
}
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
public RVV(InterfaceC14894gbR<? super T, ? extends Comparable<?>>[] interfaceC14894gbRArr) {
|
|
this.d = interfaceC14894gbRArr;
|
|
}
|
|
}
|
|
}
|