package o; import java.util.Comparator; /* loaded from: classes6.dex */ public final class gaY { /* loaded from: classes6.dex */ public static final class RVV implements Comparator { private InterfaceC14894gbR>[] d; @Override // java.util.Comparator public final int compare(T t, T t2) { int compareTo; for (InterfaceC14894gbR> 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>[] interfaceC14894gbRArr) { this.d = interfaceC14894gbRArr; } } }