mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-27 01:22:33 -06:00
37 lines
938 B
Java
37 lines
938 B
Java
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 + "}";
|
|
}
|
|
}
|