public final class io.reactivex.subjects.PublishSubject<T> extends io.reactivex.subjects.Subject<T>
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: io.reactivex.subjects.PublishSubject
super_class: io.reactivex.subjects.Subject
{
static final io.reactivex.subjects.PublishSubject$PublishDisposable[] TERMINATED;
descriptor: [Lio/reactivex/subjects/PublishSubject$PublishDisposable;
flags: (0x0018) ACC_STATIC, ACC_FINAL
static final io.reactivex.subjects.PublishSubject$PublishDisposable[] EMPTY;
descriptor: [Lio/reactivex/subjects/PublishSubject$PublishDisposable;
flags: (0x0018) ACC_STATIC, ACC_FINAL
final java.util.concurrent.atomic.AtomicReference<io.reactivex.subjects.PublishSubject$PublishDisposable<T>[]> subscribers;
descriptor: Ljava/util/concurrent/atomic/AtomicReference;
flags: (0x0010) ACC_FINAL
Signature: Ljava/util/concurrent/atomic/AtomicReference<[Lio/reactivex/subjects/PublishSubject$PublishDisposable<TT;>;>;
java.lang.Throwable error;
descriptor: Ljava/lang/Throwable;
flags: (0x0000)
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: iconst_0
anewarray io.reactivex.subjects.PublishSubject$PublishDisposable
putstatic io.reactivex.subjects.PublishSubject.TERMINATED:[Lio/reactivex/subjects/PublishSubject$PublishDisposable;
1: iconst_0
anewarray io.reactivex.subjects.PublishSubject$PublishDisposable
putstatic io.reactivex.subjects.PublishSubject.EMPTY:[Lio/reactivex/subjects/PublishSubject$PublishDisposable;
return
LocalVariableTable:
Start End Slot Name Signature
public static <T> io.reactivex.subjects.PublishSubject<T> create();
descriptor: ()Lio/reactivex/subjects/PublishSubject;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: new io.reactivex.subjects.PublishSubject
dup
invokespecial io.reactivex.subjects.PublishSubject.<init>:()V
areturn
LocalVariableTable:
Start End Slot Name Signature
Signature: <T:Ljava/lang/Object;>()Lio/reactivex/subjects/PublishSubject<TT;>;
RuntimeVisibleAnnotations:
io.reactivex.annotations.CheckReturnValue()
RuntimeInvisibleAnnotations:
io.reactivex.annotations.NonNull()
void <init>();
descriptor: ()V
flags: (0x0000)
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
invokespecial io.reactivex.subjects.Subject.<init>:()V
1: aload 0
new java.util.concurrent.atomic.AtomicReference
dup
getstatic io.reactivex.subjects.PublishSubject.EMPTY:[Lio/reactivex/subjects/PublishSubject$PublishDisposable;
invokespecial java.util.concurrent.atomic.AtomicReference.<init>:(Ljava/lang/Object;)V
putfield io.reactivex.subjects.PublishSubject.subscribers:Ljava/util/concurrent/atomic/AtomicReference;
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/reactivex/subjects/PublishSubject<TT;>;
protected void subscribeActual(io.reactivex.Observer<? super T>);
descriptor: (Lio/reactivex/Observer;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=4, args_size=2
start local 0 start local 1 0: new io.reactivex.subjects.PublishSubject$PublishDisposable
dup
aload 1
aload 0
invokespecial io.reactivex.subjects.PublishSubject$PublishDisposable.<init>:(Lio/reactivex/Observer;Lio/reactivex/subjects/PublishSubject;)V
astore 2
start local 2 1: aload 1
aload 2
invokeinterface io.reactivex.Observer.onSubscribe:(Lio/reactivex/disposables/Disposable;)V
2: aload 0
aload 2
invokevirtual io.reactivex.subjects.PublishSubject.add:(Lio/reactivex/subjects/PublishSubject$PublishDisposable;)Z
ifeq 6
3: aload 2
invokevirtual io.reactivex.subjects.PublishSubject$PublishDisposable.isDisposed:()Z
ifeq 11
4: aload 0
aload 2
invokevirtual io.reactivex.subjects.PublishSubject.remove:(Lio/reactivex/subjects/PublishSubject$PublishDisposable;)V
5: goto 11
6: StackMap locals: io.reactivex.subjects.PublishSubject$PublishDisposable
StackMap stack:
aload 0
getfield io.reactivex.subjects.PublishSubject.error:Ljava/lang/Throwable;
astore 3
start local 3 7: aload 3
ifnull 10
8: aload 1
aload 3
invokeinterface io.reactivex.Observer.onError:(Ljava/lang/Throwable;)V
9: goto 11
10: StackMap locals: java.lang.Throwable
StackMap stack:
aload 1
invokeinterface io.reactivex.Observer.onComplete:()V
end local 3 11: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lio/reactivex/subjects/PublishSubject<TT;>;
0 12 1 t Lio/reactivex/Observer<-TT;>;
1 12 2 ps Lio/reactivex/subjects/PublishSubject$PublishDisposable<TT;>;
7 11 3 ex Ljava/lang/Throwable;
Signature: (Lio/reactivex/Observer<-TT;>;)V
MethodParameters:
Name Flags
t
boolean add(io.reactivex.subjects.PublishSubject$PublishDisposable<T>);
descriptor: (Lio/reactivex/subjects/PublishSubject$PublishDisposable;)Z
flags: (0x0000)
Code:
stack=5, locals=5, args_size=2
start local 0 start local 1 0: StackMap locals:
StackMap stack:
aload 0
getfield io.reactivex.subjects.PublishSubject.subscribers:Ljava/util/concurrent/atomic/AtomicReference;
invokevirtual java.util.concurrent.atomic.AtomicReference.get:()Ljava/lang/Object;
checkcast io.reactivex.subjects.PublishSubject$PublishDisposable[]
astore 2
start local 2 1: aload 2
getstatic io.reactivex.subjects.PublishSubject.TERMINATED:[Lio/reactivex/subjects/PublishSubject$PublishDisposable;
if_acmpne 3
2: iconst_0
ireturn
3: StackMap locals: io.reactivex.subjects.PublishSubject$PublishDisposable[]
StackMap stack:
aload 2
arraylength
istore 3
start local 3 4: iload 3
iconst_1
iadd
anewarray io.reactivex.subjects.PublishSubject$PublishDisposable
astore 4
start local 4 5: aload 2
iconst_0
aload 4
iconst_0
iload 3
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
6: aload 4
iload 3
aload 1
aastore
7: aload 0
getfield io.reactivex.subjects.PublishSubject.subscribers:Ljava/util/concurrent/atomic/AtomicReference;
aload 2
aload 4
invokevirtual java.util.concurrent.atomic.AtomicReference.compareAndSet:(Ljava/lang/Object;Ljava/lang/Object;)Z
ifeq 0
8: iconst_1
ireturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lio/reactivex/subjects/PublishSubject<TT;>;
0 9 1 ps Lio/reactivex/subjects/PublishSubject$PublishDisposable<TT;>;
1 9 2 a [Lio/reactivex/subjects/PublishSubject$PublishDisposable;
4 9 3 n I
5 9 4 b [Lio/reactivex/subjects/PublishSubject$PublishDisposable;
Signature: (Lio/reactivex/subjects/PublishSubject$PublishDisposable<TT;>;)Z
MethodParameters:
Name Flags
ps
void remove(io.reactivex.subjects.PublishSubject$PublishDisposable<T>);
descriptor: (Lio/reactivex/subjects/PublishSubject$PublishDisposable;)V
flags: (0x0000)
Code:
stack=6, locals=6, args_size=2
start local 0 start local 1 0: StackMap locals:
StackMap stack:
aload 0
getfield io.reactivex.subjects.PublishSubject.subscribers:Ljava/util/concurrent/atomic/AtomicReference;
invokevirtual java.util.concurrent.atomic.AtomicReference.get:()Ljava/lang/Object;
checkcast io.reactivex.subjects.PublishSubject$PublishDisposable[]
astore 2
start local 2 1: aload 2
getstatic io.reactivex.subjects.PublishSubject.TERMINATED:[Lio/reactivex/subjects/PublishSubject$PublishDisposable;
if_acmpeq 2
aload 2
getstatic io.reactivex.subjects.PublishSubject.EMPTY:[Lio/reactivex/subjects/PublishSubject$PublishDisposable;
if_acmpne 3
2: StackMap locals: io.reactivex.subjects.PublishSubject$PublishDisposable[]
StackMap stack:
return
3: StackMap locals:
StackMap stack:
aload 2
arraylength
istore 3
start local 3 4: iconst_m1
istore 4
start local 4 5: iconst_0
istore 5
start local 5 6: goto 11
7: StackMap locals: int int int
StackMap stack:
aload 2
iload 5
aaload
aload 1
if_acmpne 10
8: iload 5
istore 4
9: goto 12
10: StackMap locals:
StackMap stack:
iinc 5 1
StackMap locals:
StackMap stack:
11: iload 5
iload 3
if_icmplt 7
end local 5 12: StackMap locals:
StackMap stack:
iload 4
ifge 14
13: return
14: StackMap locals:
StackMap stack:
iload 3
iconst_1
if_icmpne 17
15: getstatic io.reactivex.subjects.PublishSubject.EMPTY:[Lio/reactivex/subjects/PublishSubject$PublishDisposable;
astore 5
start local 5 16: goto 20
end local 5 17: StackMap locals:
StackMap stack:
iload 3
iconst_1
isub
anewarray io.reactivex.subjects.PublishSubject$PublishDisposable
astore 5
start local 5 18: aload 2
iconst_0
aload 5
iconst_0
iload 4
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
19: aload 2
iload 4
iconst_1
iadd
aload 5
iload 4
iload 3
iload 4
isub
iconst_1
isub
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
20: StackMap locals: io.reactivex.subjects.PublishSubject$PublishDisposable[]
StackMap stack:
aload 0
getfield io.reactivex.subjects.PublishSubject.subscribers:Ljava/util/concurrent/atomic/AtomicReference;
aload 2
aload 5
invokevirtual java.util.concurrent.atomic.AtomicReference.compareAndSet:(Ljava/lang/Object;Ljava/lang/Object;)Z
ifeq 0
21: return
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 22 0 this Lio/reactivex/subjects/PublishSubject<TT;>;
0 22 1 ps Lio/reactivex/subjects/PublishSubject$PublishDisposable<TT;>;
1 22 2 a [Lio/reactivex/subjects/PublishSubject$PublishDisposable;
4 22 3 n I
5 22 4 j I
6 12 5 i I
16 17 5 b [Lio/reactivex/subjects/PublishSubject$PublishDisposable;
18 22 5 b [Lio/reactivex/subjects/PublishSubject$PublishDisposable;
Signature: (Lio/reactivex/subjects/PublishSubject$PublishDisposable<TT;>;)V
MethodParameters:
Name Flags
ps
public void onSubscribe(io.reactivex.disposables.Disposable);
descriptor: (Lio/reactivex/disposables/Disposable;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield io.reactivex.subjects.PublishSubject.subscribers:Ljava/util/concurrent/atomic/AtomicReference;
invokevirtual java.util.concurrent.atomic.AtomicReference.get:()Ljava/lang/Object;
getstatic io.reactivex.subjects.PublishSubject.TERMINATED:[Lio/reactivex/subjects/PublishSubject$PublishDisposable;
if_acmpne 2
1: aload 1
invokeinterface io.reactivex.disposables.Disposable.dispose:()V
2: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/reactivex/subjects/PublishSubject<TT;>;
0 3 1 d Lio/reactivex/disposables/Disposable;
MethodParameters:
Name Flags
d
public void onNext();
descriptor: (Ljava/lang/Object;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=6, args_size=2
start local 0 start local 1 0: aload 1
ldc "onNext called with null. Null values are generally not allowed in 2.x operators and sources."
invokestatic io.reactivex.internal.functions.ObjectHelper.requireNonNull:(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
pop
1: aload 0
getfield io.reactivex.subjects.PublishSubject.subscribers:Ljava/util/concurrent/atomic/AtomicReference;
invokevirtual java.util.concurrent.atomic.AtomicReference.get:()Ljava/lang/Object;
checkcast io.reactivex.subjects.PublishSubject$PublishDisposable[]
dup
astore 5
arraylength
istore 4
iconst_0
istore 3
goto 5
StackMap locals: io.reactivex.subjects.PublishSubject java.lang.Object top int int io.reactivex.subjects.PublishSubject$PublishDisposable[]
StackMap stack:
2: aload 5
iload 3
aaload
astore 2
start local 2 3: aload 2
aload 1
invokevirtual io.reactivex.subjects.PublishSubject$PublishDisposable.onNext:(Ljava/lang/Object;)V
end local 2 4: iinc 3 1
StackMap locals:
StackMap stack:
5: iload 3
iload 4
if_icmplt 2
6: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lio/reactivex/subjects/PublishSubject<TT;>;
0 7 1 t TT;
3 4 2 pd Lio/reactivex/subjects/PublishSubject$PublishDisposable<TT;>;
Signature: (TT;)V
MethodParameters:
Name Flags
t
public void onError(java.lang.Throwable);
descriptor: (Ljava/lang/Throwable;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=6, args_size=2
start local 0 start local 1 0: aload 1
ldc "onError called with null. Null values are generally not allowed in 2.x operators and sources."
invokestatic io.reactivex.internal.functions.ObjectHelper.requireNonNull:(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
pop
1: aload 0
getfield io.reactivex.subjects.PublishSubject.subscribers:Ljava/util/concurrent/atomic/AtomicReference;
invokevirtual java.util.concurrent.atomic.AtomicReference.get:()Ljava/lang/Object;
getstatic io.reactivex.subjects.PublishSubject.TERMINATED:[Lio/reactivex/subjects/PublishSubject$PublishDisposable;
if_acmpne 4
2: aload 1
invokestatic io.reactivex.plugins.RxJavaPlugins.onError:(Ljava/lang/Throwable;)V
3: return
4: StackMap locals:
StackMap stack:
aload 0
aload 1
putfield io.reactivex.subjects.PublishSubject.error:Ljava/lang/Throwable;
5: aload 0
getfield io.reactivex.subjects.PublishSubject.subscribers:Ljava/util/concurrent/atomic/AtomicReference;
getstatic io.reactivex.subjects.PublishSubject.TERMINATED:[Lio/reactivex/subjects/PublishSubject$PublishDisposable;
invokevirtual java.util.concurrent.atomic.AtomicReference.getAndSet:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast io.reactivex.subjects.PublishSubject$PublishDisposable[]
dup
astore 5
arraylength
istore 4
iconst_0
istore 3
goto 9
StackMap locals: io.reactivex.subjects.PublishSubject java.lang.Throwable top int int io.reactivex.subjects.PublishSubject$PublishDisposable[]
StackMap stack:
6: aload 5
iload 3
aaload
astore 2
start local 2 7: aload 2
aload 1
invokevirtual io.reactivex.subjects.PublishSubject$PublishDisposable.onError:(Ljava/lang/Throwable;)V
end local 2 8: iinc 3 1
StackMap locals:
StackMap stack:
9: iload 3
iload 4
if_icmplt 6
10: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lio/reactivex/subjects/PublishSubject<TT;>;
0 11 1 t Ljava/lang/Throwable;
7 8 2 pd Lio/reactivex/subjects/PublishSubject$PublishDisposable<TT;>;
MethodParameters:
Name Flags
t
public void onComplete();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=5, args_size=1
start local 0 0: aload 0
getfield io.reactivex.subjects.PublishSubject.subscribers:Ljava/util/concurrent/atomic/AtomicReference;
invokevirtual java.util.concurrent.atomic.AtomicReference.get:()Ljava/lang/Object;
getstatic io.reactivex.subjects.PublishSubject.TERMINATED:[Lio/reactivex/subjects/PublishSubject$PublishDisposable;
if_acmpne 2
1: return
2: StackMap locals:
StackMap stack:
aload 0
getfield io.reactivex.subjects.PublishSubject.subscribers:Ljava/util/concurrent/atomic/AtomicReference;
getstatic io.reactivex.subjects.PublishSubject.TERMINATED:[Lio/reactivex/subjects/PublishSubject$PublishDisposable;
invokevirtual java.util.concurrent.atomic.AtomicReference.getAndSet:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast io.reactivex.subjects.PublishSubject$PublishDisposable[]
dup
astore 4
arraylength
istore 3
iconst_0
istore 2
goto 6
StackMap locals: io.reactivex.subjects.PublishSubject top int int io.reactivex.subjects.PublishSubject$PublishDisposable[]
StackMap stack:
3: aload 4
iload 2
aaload
astore 1
start local 1 4: aload 1
invokevirtual io.reactivex.subjects.PublishSubject$PublishDisposable.onComplete:()V
end local 1 5: iinc 2 1
StackMap locals:
StackMap stack:
6: iload 2
iload 3
if_icmplt 3
7: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lio/reactivex/subjects/PublishSubject<TT;>;
4 5 1 pd Lio/reactivex/subjects/PublishSubject$PublishDisposable<TT;>;
public boolean hasObservers();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.reactivex.subjects.PublishSubject.subscribers:Ljava/util/concurrent/atomic/AtomicReference;
invokevirtual java.util.concurrent.atomic.AtomicReference.get:()Ljava/lang/Object;
checkcast io.reactivex.subjects.PublishSubject$PublishDisposable[]
arraylength
ifeq 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/reactivex/subjects/PublishSubject<TT;>;
public java.lang.Throwable getThrowable();
descriptor: ()Ljava/lang/Throwable;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield io.reactivex.subjects.PublishSubject.subscribers:Ljava/util/concurrent/atomic/AtomicReference;
invokevirtual java.util.concurrent.atomic.AtomicReference.get:()Ljava/lang/Object;
getstatic io.reactivex.subjects.PublishSubject.TERMINATED:[Lio/reactivex/subjects/PublishSubject$PublishDisposable;
if_acmpne 2
1: aload 0
getfield io.reactivex.subjects.PublishSubject.error:Ljava/lang/Throwable;
areturn
2: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/reactivex/subjects/PublishSubject<TT;>;
RuntimeInvisibleAnnotations:
io.reactivex.annotations.Nullable()
public boolean hasThrowable();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield io.reactivex.subjects.PublishSubject.subscribers:Ljava/util/concurrent/atomic/AtomicReference;
invokevirtual java.util.concurrent.atomic.AtomicReference.get:()Ljava/lang/Object;
getstatic io.reactivex.subjects.PublishSubject.TERMINATED:[Lio/reactivex/subjects/PublishSubject$PublishDisposable;
if_acmpne 1
aload 0
getfield io.reactivex.subjects.PublishSubject.error:Ljava/lang/Throwable;
ifnull 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/reactivex/subjects/PublishSubject<TT;>;
public boolean hasComplete();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield io.reactivex.subjects.PublishSubject.subscribers:Ljava/util/concurrent/atomic/AtomicReference;
invokevirtual java.util.concurrent.atomic.AtomicReference.get:()Ljava/lang/Object;
getstatic io.reactivex.subjects.PublishSubject.TERMINATED:[Lio/reactivex/subjects/PublishSubject$PublishDisposable;
if_acmpne 1
aload 0
getfield io.reactivex.subjects.PublishSubject.error:Ljava/lang/Throwable;
ifnonnull 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/reactivex/subjects/PublishSubject<TT;>;
}
Signature: <T:Ljava/lang/Object;>Lio/reactivex/subjects/Subject<TT;>;
SourceFile: "PublishSubject.java"
NestMembers:
io.reactivex.subjects.PublishSubject$PublishDisposable
InnerClasses:
final PublishDisposable = io.reactivex.subjects.PublishSubject$PublishDisposable of io.reactivex.subjects.PublishSubject