78 lines
2.1 KiB
Java
78 lines
2.1 KiB
Java
|
package j0.l.a;
|
||
|
|
||
|
import j0.g;
|
||
|
import java.io.Serializable;
|
||
|
/* compiled from: NotificationLite */
|
||
|
public final class e {
|
||
|
public static final Object a = new a();
|
||
|
public static final Object b = new b();
|
||
|
|
||
|
/* compiled from: NotificationLite */
|
||
|
public static class a implements Serializable {
|
||
|
private static final long serialVersionUID = 1;
|
||
|
|
||
|
@Override // java.lang.Object
|
||
|
public String toString() {
|
||
|
return "Notification=>Completed";
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* compiled from: NotificationLite */
|
||
|
public static class b implements Serializable {
|
||
|
private static final long serialVersionUID = 2;
|
||
|
|
||
|
@Override // java.lang.Object
|
||
|
public String toString() {
|
||
|
return "Notification=>NULL";
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* compiled from: NotificationLite */
|
||
|
public static final class c implements Serializable {
|
||
|
private static final long serialVersionUID = 3;
|
||
|
public final Throwable e;
|
||
|
|
||
|
public c(Throwable th) {
|
||
|
this.e = th;
|
||
|
}
|
||
|
|
||
|
@Override // java.lang.Object
|
||
|
public String toString() {
|
||
|
StringBuilder L = c.d.b.a.a.L("Notification=>Error:");
|
||
|
L.append(this.e);
|
||
|
return L.toString();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public static <T> boolean a(g<? super T> gVar, Object obj) {
|
||
|
if (obj == a) {
|
||
|
gVar.onCompleted();
|
||
|
return true;
|
||
|
} else if (obj == b) {
|
||
|
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 DEBUG: Multi-variable search result rejected for r1v0, resolved type: java.lang.Object */
|
||
|
/* JADX WARN: Multi-variable type inference failed */
|
||
|
public static <T> T b(Object obj) {
|
||
|
if (obj == b) {
|
||
|
return null;
|
||
|
}
|
||
|
return obj;
|
||
|
}
|
||
|
|
||
|
public static boolean c(Object obj) {
|
||
|
return obj == a;
|
||
|
}
|
||
|
}
|