what-the-bank/sources/com/google/android/gms/location/zzu.java

18 lines
852 B
Java

package com.google.android.gms.location;
import com.google.android.gms.common.internal.Preconditions;
import java.util.Comparator;
/* loaded from: classes2.dex */
final class zzu implements Comparator {
@Override // java.util.Comparator
public final /* synthetic */ int compare(Object obj, Object obj2) {
DetectedActivity detectedActivity = (DetectedActivity) obj;
DetectedActivity detectedActivity2 = (DetectedActivity) obj2;
Preconditions.checkNotNull(detectedActivity);
Preconditions.checkNotNull(detectedActivity2);
int compareTo = Integer.valueOf(detectedActivity2.getConfidence()).compareTo(Integer.valueOf(detectedActivity.getConfidence()));
return compareTo == 0 ? Integer.valueOf(detectedActivity.getType()).compareTo(Integer.valueOf(detectedActivity2.getType())) : compareTo;
}
}