Files
iTartanas/itranvias_code/com/google/android.gms/location/zzg.java
T

30 lines
1.2 KiB
Java

package com.google.android.gms.location;
import com.google.android.gms.common.internal.Preconditions;
import java.util.Comparator;
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
/* JADX INFO: loaded from: classes2.dex */
final class zzg implements Comparator {
zzg() {
}
@Override // java.util.Comparator
public final /* bridge */ /* 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) {
return activityType >= activityType2 ? 1 : -1;
}
int transitionType = activityTransition.getTransitionType();
int transitionType2 = activityTransition2.getTransitionType();
if (transitionType == transitionType2) {
return 0;
}
return transitionType >= transitionType2 ? 1 : -1;
}
}