58 lines
1.5 KiB
Java
58 lines
1.5 KiB
Java
package com.discord.stores.utilities;
|
|
|
|
import c.d.b.a.a;
|
|
import com.discord.utilities.error.Error;
|
|
import d0.z.d.m;
|
|
/* compiled from: RestCallState.kt */
|
|
public final class Failure<T> extends RestCallState<T> {
|
|
private final Error error;
|
|
|
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
|
public Failure(Error error) {
|
|
super(null);
|
|
m.checkNotNullParameter(error, "error");
|
|
this.error = error;
|
|
}
|
|
|
|
public static /* synthetic */ Failure copy$default(Failure failure, Error error, int i, Object obj) {
|
|
if ((i & 1) != 0) {
|
|
error = failure.error;
|
|
}
|
|
return failure.copy(error);
|
|
}
|
|
|
|
public final Error component1() {
|
|
return this.error;
|
|
}
|
|
|
|
public final Failure<T> copy(Error error) {
|
|
m.checkNotNullParameter(error, "error");
|
|
return new Failure<>(error);
|
|
}
|
|
|
|
public boolean equals(Object obj) {
|
|
if (this != obj) {
|
|
return (obj instanceof Failure) && m.areEqual(this.error, ((Failure) obj).error);
|
|
}
|
|
return true;
|
|
}
|
|
|
|
public final Error getError() {
|
|
return this.error;
|
|
}
|
|
|
|
public int hashCode() {
|
|
Error error = this.error;
|
|
if (error != null) {
|
|
return error.hashCode();
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
public String toString() {
|
|
StringBuilder K = a.K("Failure(error=");
|
|
K.append(this.error);
|
|
K.append(")");
|
|
return K.toString();
|
|
}
|
|
}
|