final class io.reactivex.internal.operators.observable.BlockingObservableNext$NextIterator<T> implements java.util.Iterator<T>
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: io.reactivex.internal.operators.observable.BlockingObservableNext$NextIterator
super_class: java.lang.Object
{
private final io.reactivex.internal.operators.observable.BlockingObservableNext$NextObserver<T> observer;
descriptor: Lio/reactivex/internal/operators/observable/BlockingObservableNext$NextObserver;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Lio/reactivex/internal/operators/observable/BlockingObservableNext$NextObserver<TT;>;
private final io.reactivex.ObservableSource<T> items;
descriptor: Lio/reactivex/ObservableSource;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Lio/reactivex/ObservableSource<TT;>;
private T next;
descriptor: Ljava/lang/Object;
flags: (0x0002) ACC_PRIVATE
Signature: TT;
private boolean hasNext;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private boolean isNextConsumed;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private java.lang.Throwable error;
descriptor: Ljava/lang/Throwable;
flags: (0x0002) ACC_PRIVATE
private boolean started;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
void <init>(io.reactivex.ObservableSource<T>, io.reactivex.internal.operators.observable.BlockingObservableNext$NextObserver<T>);
descriptor: (Lio/reactivex/ObservableSource;Lio/reactivex/internal/operators/observable/BlockingObservableNext$NextObserver;)V
flags: (0x0000)
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
iconst_1
putfield io.reactivex.internal.operators.observable.BlockingObservableNext$NextIterator.hasNext:Z
2: aload 0
iconst_1
putfield io.reactivex.internal.operators.observable.BlockingObservableNext$NextIterator.isNextConsumed:Z
3: aload 0
aload 1
putfield io.reactivex.internal.operators.observable.BlockingObservableNext$NextIterator.items:Lio/reactivex/ObservableSource;
4: aload 0
aload 2
putfield io.reactivex.internal.operators.observable.BlockingObservableNext$NextIterator.observer:Lio/reactivex/internal/operators/observable/BlockingObservableNext$NextObserver;
5: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lio/reactivex/internal/operators/observable/BlockingObservableNext$NextIterator<TT;>;
0 6 1 items Lio/reactivex/ObservableSource<TT;>;
0 6 2 observer Lio/reactivex/internal/operators/observable/BlockingObservableNext$NextObserver<TT;>;
Signature: (Lio/reactivex/ObservableSource<TT;>;Lio/reactivex/internal/operators/observable/BlockingObservableNext$NextObserver<TT;>;)V
MethodParameters:
Name Flags
items
observer
public boolean hasNext();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.reactivex.internal.operators.observable.BlockingObservableNext$NextIterator.error:Ljava/lang/Throwable;
ifnull 2
1: aload 0
getfield io.reactivex.internal.operators.observable.BlockingObservableNext$NextIterator.error:Ljava/lang/Throwable;
invokestatic io.reactivex.internal.util.ExceptionHelper.wrapOrThrow:(Ljava/lang/Throwable;)Ljava/lang/RuntimeException;
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield io.reactivex.internal.operators.observable.BlockingObservableNext$NextIterator.hasNext:Z
ifne 4
3: iconst_0
ireturn
4: StackMap locals:
StackMap stack:
aload 0
getfield io.reactivex.internal.operators.observable.BlockingObservableNext$NextIterator.isNextConsumed:Z
ifeq 5
aload 0
invokevirtual io.reactivex.internal.operators.observable.BlockingObservableNext$NextIterator.moveToNext:()Z
ifne 5
iconst_0
ireturn
StackMap locals:
StackMap stack:
5: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lio/reactivex/internal/operators/observable/BlockingObservableNext$NextIterator<TT;>;
private boolean moveToNext();
descriptor: ()Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=3, args_size=1
start local 0 0: aload 0
getfield io.reactivex.internal.operators.observable.BlockingObservableNext$NextIterator.started:Z
ifne 4
1: aload 0
iconst_1
putfield io.reactivex.internal.operators.observable.BlockingObservableNext$NextIterator.started:Z
2: aload 0
getfield io.reactivex.internal.operators.observable.BlockingObservableNext$NextIterator.observer:Lio/reactivex/internal/operators/observable/BlockingObservableNext$NextObserver;
invokevirtual io.reactivex.internal.operators.observable.BlockingObservableNext$NextObserver.setWaiting:()V
3: new io.reactivex.internal.operators.observable.ObservableMaterialize
dup
aload 0
getfield io.reactivex.internal.operators.observable.BlockingObservableNext$NextIterator.items:Lio/reactivex/ObservableSource;
invokespecial io.reactivex.internal.operators.observable.ObservableMaterialize.<init>:(Lio/reactivex/ObservableSource;)V
aload 0
getfield io.reactivex.internal.operators.observable.BlockingObservableNext$NextIterator.observer:Lio/reactivex/internal/operators/observable/BlockingObservableNext$NextObserver;
invokevirtual io.reactivex.internal.operators.observable.ObservableMaterialize.subscribe:(Lio/reactivex/Observer;)V
4: StackMap locals:
StackMap stack:
aload 0
getfield io.reactivex.internal.operators.observable.BlockingObservableNext$NextIterator.observer:Lio/reactivex/internal/operators/observable/BlockingObservableNext$NextObserver;
invokevirtual io.reactivex.internal.operators.observable.BlockingObservableNext$NextObserver.takeNext:()Lio/reactivex/Notification;
astore 1
start local 1 5: goto 10
end local 1 StackMap locals:
StackMap stack: java.lang.InterruptedException
6: astore 2
start local 2 7: aload 0
getfield io.reactivex.internal.operators.observable.BlockingObservableNext$NextIterator.observer:Lio/reactivex/internal/operators/observable/BlockingObservableNext$NextObserver;
invokevirtual io.reactivex.internal.operators.observable.BlockingObservableNext$NextObserver.dispose:()V
8: aload 0
aload 2
putfield io.reactivex.internal.operators.observable.BlockingObservableNext$NextIterator.error:Ljava/lang/Throwable;
9: aload 2
invokestatic io.reactivex.internal.util.ExceptionHelper.wrapOrThrow:(Ljava/lang/Throwable;)Ljava/lang/RuntimeException;
athrow
end local 2 start local 1 10: StackMap locals: io.reactivex.Notification
StackMap stack:
aload 1
invokevirtual io.reactivex.Notification.isOnNext:()Z
ifeq 14
11: aload 0
iconst_0
putfield io.reactivex.internal.operators.observable.BlockingObservableNext$NextIterator.isNextConsumed:Z
12: aload 0
aload 1
invokevirtual io.reactivex.Notification.getValue:()Ljava/lang/Object;
putfield io.reactivex.internal.operators.observable.BlockingObservableNext$NextIterator.next:Ljava/lang/Object;
13: iconst_1
ireturn
14: StackMap locals:
StackMap stack:
aload 0
iconst_0
putfield io.reactivex.internal.operators.observable.BlockingObservableNext$NextIterator.hasNext:Z
15: aload 1
invokevirtual io.reactivex.Notification.isOnComplete:()Z
ifeq 17
16: iconst_0
ireturn
17: StackMap locals:
StackMap stack:
aload 0
aload 1
invokevirtual io.reactivex.Notification.getError:()Ljava/lang/Throwable;
putfield io.reactivex.internal.operators.observable.BlockingObservableNext$NextIterator.error:Ljava/lang/Throwable;
18: aload 0
getfield io.reactivex.internal.operators.observable.BlockingObservableNext$NextIterator.error:Ljava/lang/Throwable;
invokestatic io.reactivex.internal.util.ExceptionHelper.wrapOrThrow:(Ljava/lang/Throwable;)Ljava/lang/RuntimeException;
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 19 0 this Lio/reactivex/internal/operators/observable/BlockingObservableNext$NextIterator<TT;>;
5 6 1 nextNotification Lio/reactivex/Notification<TT;>;
10 19 1 nextNotification Lio/reactivex/Notification<TT;>;
7 10 2 e Ljava/lang/InterruptedException;
Exception table:
from to target type
4 5 6 Class java.lang.InterruptedException
public T next();
descriptor: ()Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield io.reactivex.internal.operators.observable.BlockingObservableNext$NextIterator.error:Ljava/lang/Throwable;
ifnull 2
1: aload 0
getfield io.reactivex.internal.operators.observable.BlockingObservableNext$NextIterator.error:Ljava/lang/Throwable;
invokestatic io.reactivex.internal.util.ExceptionHelper.wrapOrThrow:(Ljava/lang/Throwable;)Ljava/lang/RuntimeException;
athrow
2: StackMap locals:
StackMap stack:
aload 0
invokevirtual io.reactivex.internal.operators.observable.BlockingObservableNext$NextIterator.hasNext:()Z
ifeq 5
3: aload 0
iconst_1
putfield io.reactivex.internal.operators.observable.BlockingObservableNext$NextIterator.isNextConsumed:Z
4: aload 0
getfield io.reactivex.internal.operators.observable.BlockingObservableNext$NextIterator.next:Ljava/lang/Object;
areturn
5: StackMap locals:
StackMap stack:
new java.util.NoSuchElementException
dup
ldc "No more elements"
invokespecial java.util.NoSuchElementException.<init>:(Ljava/lang/String;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lio/reactivex/internal/operators/observable/BlockingObservableNext$NextIterator<TT;>;
Signature: ()TT;
public void remove();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.UnsupportedOperationException
dup
ldc "Read only iterator"
invokespecial java.lang.UnsupportedOperationException.<init>:(Ljava/lang/String;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/reactivex/internal/operators/observable/BlockingObservableNext$NextIterator<TT;>;
}
Signature: <T:Ljava/lang/Object;>Ljava/lang/Object;Ljava/util/Iterator<TT;>;
SourceFile: "BlockingObservableNext.java"
NestHost: io.reactivex.internal.operators.observable.BlockingObservableNext
InnerClasses:
final NextIterator = io.reactivex.internal.operators.observable.BlockingObservableNext$NextIterator of io.reactivex.internal.operators.observable.BlockingObservableNext
final NextObserver = io.reactivex.internal.operators.observable.BlockingObservableNext$NextObserver of io.reactivex.internal.operators.observable.BlockingObservableNext