Rabbit-R1/switch port/java/sources/com/airbnb/lottie/model/MutablePair.java

38 lines
938 B
Java
Raw Normal View History

2024-05-21 16:08:36 -05:00
package com.airbnb.lottie.model;
import androidx.core.util.Pair;
/* loaded from: classes2.dex */
public class MutablePair<T> {
T first;
T second;
public void set(T t, T t2) {
this.first = t;
this.second = t2;
}
public boolean equals(Object obj) {
if (!(obj instanceof Pair)) {
return false;
}
Pair pair = (Pair) obj;
return objectsEqual(pair.first, this.first) && objectsEqual(pair.second, this.second);
}
private static boolean objectsEqual(Object obj, Object obj2) {
return obj == obj2 || (obj != null && obj.equals(obj2));
}
public int hashCode() {
T t = this.first;
int hashCode = t == null ? 0 : t.hashCode();
T t2 = this.second;
return hashCode ^ (t2 != null ? t2.hashCode() : 0);
}
public String toString() {
return "Pair{" + this.first + " " + this.second + "}";
}
}