what-the-bank/sources/com/airbnb/lottie/LottieResult.java

49 lines
1.2 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package com.airbnb.lottie;
import java.util.Arrays;
/* loaded from: classes.dex */
public final class LottieResult<V> {
private final Throwable exception;
private final V value;
public LottieResult(V v) {
this.value = v;
this.exception = null;
}
public LottieResult(Throwable th) {
this.exception = th;
this.value = null;
}
public final boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof LottieResult)) {
return false;
}
LottieResult lottieResult = (LottieResult) obj;
if (getValue() != null && getValue().equals(lottieResult.getValue())) {
return true;
}
if (getException() == null || lottieResult.getException() == null) {
return false;
}
return getException().toString().equals(getException().toString());
}
public final int hashCode() {
return Arrays.hashCode(new Object[]{getValue(), getException()});
}
public final V getValue() {
return this.value;
}
public final Throwable getException() {
return this.exception;
}
}