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; } }