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

31 lines
1.2 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.google.android.gms.location;
import com.google.android.gms.common.internal.Preconditions;
import java.util.Comparator;
/* loaded from: classes2.dex */
final class zzq implements Comparator {
@Override // java.util.Comparator
public final /* synthetic */ int compare(Object obj, Object obj2) {
ActivityTransition activityTransition = (ActivityTransition) obj;
ActivityTransition activityTransition2 = (ActivityTransition) obj2;
Preconditions.checkNotNull(activityTransition);
Preconditions.checkNotNull(activityTransition2);
int activityType = activityTransition.getActivityType();
int activityType2 = activityTransition2.getActivityType();
if (activityType == activityType2) {
int transitionType = activityTransition.getTransitionType();
int transitionType2 = activityTransition2.getTransitionType();
if (transitionType == transitionType2) {
return 0;
}
if (transitionType < transitionType2) {
return -1;
}
} else if (activityType < activityType2) {
return -1;
}
return 1;
}
}