79 lines
2.2 KiB
Java
79 lines
2.2 KiB
Java
package j0.l.a;
|
|
|
|
import j0.g;
|
|
import java.io.Serializable;
|
|
/* compiled from: NotificationLite.java */
|
|
/* loaded from: classes3.dex */
|
|
public final class e {
|
|
public static final Object a = new a();
|
|
|
|
/* renamed from: b reason: collision with root package name */
|
|
public static final Object f3745b = new b();
|
|
|
|
/* compiled from: NotificationLite.java */
|
|
/* loaded from: classes3.dex */
|
|
public static class a implements Serializable {
|
|
private static final long serialVersionUID = 1;
|
|
|
|
public String toString() {
|
|
return "Notification=>Completed";
|
|
}
|
|
}
|
|
|
|
/* compiled from: NotificationLite.java */
|
|
/* loaded from: classes3.dex */
|
|
public static class b implements Serializable {
|
|
private static final long serialVersionUID = 2;
|
|
|
|
public String toString() {
|
|
return "Notification=>NULL";
|
|
}
|
|
}
|
|
|
|
/* compiled from: NotificationLite.java */
|
|
/* loaded from: classes3.dex */
|
|
public static final class c implements Serializable {
|
|
private static final long serialVersionUID = 3;
|
|
public final Throwable e;
|
|
|
|
public c(Throwable th) {
|
|
this.e = th;
|
|
}
|
|
|
|
public String toString() {
|
|
StringBuilder R = b.d.b.a.a.R("Notification=>Error:");
|
|
R.append(this.e);
|
|
return R.toString();
|
|
}
|
|
}
|
|
|
|
public static <T> boolean a(g<? super T> gVar, Object obj) {
|
|
if (obj == a) {
|
|
gVar.onCompleted();
|
|
return true;
|
|
} else if (obj == f3745b) {
|
|
gVar.onNext(null);
|
|
return false;
|
|
} else if (obj == null) {
|
|
throw new IllegalArgumentException("The lite notification can not be null");
|
|
} else if (obj.getClass() == c.class) {
|
|
gVar.onError(((c) obj).e);
|
|
return true;
|
|
} else {
|
|
gVar.onNext(obj);
|
|
return false;
|
|
}
|
|
}
|
|
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
public static <T> T b(Object obj) {
|
|
if (obj == f3745b) {
|
|
return null;
|
|
}
|
|
return obj;
|
|
}
|
|
|
|
public static boolean c(Object obj) {
|
|
return obj == a;
|
|
}
|
|
}
|