package androidx.core.util; import androidx.annotation.NonNull; /* loaded from: classes.dex */ public class Pair { public final F first; public final S second; public Pair(F f, S s) { this.first = f; this.second = s; } public boolean equals(Object obj) { if (!(obj instanceof Pair)) { return false; } Pair pair = (Pair) obj; return ObjectsCompat.equals(pair.first, this.first) && ObjectsCompat.equals(pair.second, this.second); } public int hashCode() { F f = this.first; int hashCode = f == null ? 0 : f.hashCode(); S s = this.second; return hashCode ^ (s != null ? s.hashCode() : 0); } @NonNull public String toString() { return "Pair{" + this.first + " " + this.second + "}"; } @NonNull public static Pair create(A a, B b) { return new Pair<>(a, b); } }