public class com.mongodb.client.internal.MongoBatchCursorAdapter<T> implements com.mongodb.client.MongoCursor<T>
  minor version: 0
  major version: 59
  flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
  this_class: com.mongodb.client.internal.MongoBatchCursorAdapter
  super_class: java.lang.Object
{
  private final com.mongodb.operation.BatchCursor<T> batchCursor;
    descriptor: Lcom/mongodb/operation/BatchCursor;
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL
    Signature: Lcom/mongodb/operation/BatchCursor<TT;>;

  private java.util.List<T> curBatch;
    descriptor: Ljava/util/List;
    flags: (0x0002) ACC_PRIVATE
    Signature: Ljava/util/List<TT;>;

  private int curPos;
    descriptor: I
    flags: (0x0002) ACC_PRIVATE

  public void <init>(com.mongodb.operation.BatchCursor<T>);
    descriptor: (Lcom/mongodb/operation/BatchCursor;)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=2, args_size=2
        start local 0 // com.mongodb.client.internal.MongoBatchCursorAdapter this
        start local 1 // com.mongodb.operation.BatchCursor batchCursor
         0: .line 38
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
         1: .line 39
            aload 0 /* this */
            aload 1 /* batchCursor */
            putfield com.mongodb.client.internal.MongoBatchCursorAdapter.batchCursor:Lcom/mongodb/operation/BatchCursor;
         2: .line 40
            return
        end local 1 // com.mongodb.operation.BatchCursor batchCursor
        end local 0 // com.mongodb.client.internal.MongoBatchCursorAdapter this
      LocalVariableTable:
        Start  End  Slot         Name  Signature
            0    3     0         this  Lcom/mongodb/client/internal/MongoBatchCursorAdapter<TT;>;
            0    3     1  batchCursor  Lcom/mongodb/operation/BatchCursor<TT;>;
    Signature: (Lcom/mongodb/operation/BatchCursor<TT;>;)V
    MethodParameters:
             Name  Flags
      batchCursor  final

  public void remove();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=3, locals=1, args_size=1
        start local 0 // com.mongodb.client.internal.MongoBatchCursorAdapter this
         0: .line 44
            new java.lang.UnsupportedOperationException
            dup
            ldc "Cursors do not support removal"
            invokespecial java.lang.UnsupportedOperationException.<init>:(Ljava/lang/String;)V
            athrow
        end local 0 // com.mongodb.client.internal.MongoBatchCursorAdapter this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lcom/mongodb/client/internal/MongoBatchCursorAdapter<TT;>;

  public void close();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // com.mongodb.client.internal.MongoBatchCursorAdapter this
         0: .line 49
            aload 0 /* this */
            getfield com.mongodb.client.internal.MongoBatchCursorAdapter.batchCursor:Lcom/mongodb/operation/BatchCursor;
            invokeinterface com.mongodb.operation.BatchCursor.close:()V
         1: .line 50
            return
        end local 0 // com.mongodb.client.internal.MongoBatchCursorAdapter this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    2     0  this  Lcom/mongodb/client/internal/MongoBatchCursorAdapter<TT;>;

  public boolean hasNext();
    descriptor: ()Z
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // com.mongodb.client.internal.MongoBatchCursorAdapter this
         0: .line 54
            aload 0 /* this */
            getfield com.mongodb.client.internal.MongoBatchCursorAdapter.curBatch:Ljava/util/List;
            ifnonnull 1
            aload 0 /* this */
            getfield com.mongodb.client.internal.MongoBatchCursorAdapter.batchCursor:Lcom/mongodb/operation/BatchCursor;
            invokeinterface com.mongodb.operation.BatchCursor.hasNext:()Z
            ifne 1
            iconst_0
            ireturn
      StackMap locals:
      StackMap stack:
         1: iconst_1
            ireturn
        end local 0 // com.mongodb.client.internal.MongoBatchCursorAdapter this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    2     0  this  Lcom/mongodb/client/internal/MongoBatchCursorAdapter<TT;>;

  public T next();
    descriptor: ()Ljava/lang/Object;
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=1, args_size=1
        start local 0 // com.mongodb.client.internal.MongoBatchCursorAdapter this
         0: .line 59
            aload 0 /* this */
            invokevirtual com.mongodb.client.internal.MongoBatchCursorAdapter.hasNext:()Z
            ifne 2
         1: .line 60
            new java.util.NoSuchElementException
            dup
            invokespecial java.util.NoSuchElementException.<init>:()V
            athrow
         2: .line 63
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield com.mongodb.client.internal.MongoBatchCursorAdapter.curBatch:Ljava/util/List;
            ifnonnull 4
         3: .line 64
            aload 0 /* this */
            aload 0 /* this */
            getfield com.mongodb.client.internal.MongoBatchCursorAdapter.batchCursor:Lcom/mongodb/operation/BatchCursor;
            invokeinterface com.mongodb.operation.BatchCursor.next:()Ljava/util/List;
            putfield com.mongodb.client.internal.MongoBatchCursorAdapter.curBatch:Ljava/util/List;
         4: .line 67
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            invokevirtual com.mongodb.client.internal.MongoBatchCursorAdapter.getNextInBatch:()Ljava/lang/Object;
            areturn
        end local 0 // com.mongodb.client.internal.MongoBatchCursorAdapter this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    5     0  this  Lcom/mongodb/client/internal/MongoBatchCursorAdapter<TT;>;
    Signature: ()TT;

  public T tryNext();
    descriptor: ()Ljava/lang/Object;
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=1, args_size=1
        start local 0 // com.mongodb.client.internal.MongoBatchCursorAdapter this
         0: .line 73
            aload 0 /* this */
            getfield com.mongodb.client.internal.MongoBatchCursorAdapter.curBatch:Ljava/util/List;
            ifnonnull 2
         1: .line 74
            aload 0 /* this */
            aload 0 /* this */
            getfield com.mongodb.client.internal.MongoBatchCursorAdapter.batchCursor:Lcom/mongodb/operation/BatchCursor;
            invokeinterface com.mongodb.operation.BatchCursor.tryNext:()Ljava/util/List;
            putfield com.mongodb.client.internal.MongoBatchCursorAdapter.curBatch:Ljava/util/List;
         2: .line 77
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield com.mongodb.client.internal.MongoBatchCursorAdapter.curBatch:Ljava/util/List;
            ifnonnull 3
            aconst_null
            goto 4
      StackMap locals:
      StackMap stack:
         3: aload 0 /* this */
            invokevirtual com.mongodb.client.internal.MongoBatchCursorAdapter.getNextInBatch:()Ljava/lang/Object;
      StackMap locals:
      StackMap stack: java.lang.Object
         4: areturn
        end local 0 // com.mongodb.client.internal.MongoBatchCursorAdapter this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    5     0  this  Lcom/mongodb/client/internal/MongoBatchCursorAdapter<TT;>;
    Signature: ()TT;
    RuntimeVisibleAnnotations: 
      com.mongodb.lang.Nullable()

  public com.mongodb.ServerCursor getServerCursor();
    descriptor: ()Lcom/mongodb/ServerCursor;
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // com.mongodb.client.internal.MongoBatchCursorAdapter this
         0: .line 83
            aload 0 /* this */
            getfield com.mongodb.client.internal.MongoBatchCursorAdapter.batchCursor:Lcom/mongodb/operation/BatchCursor;
            invokeinterface com.mongodb.operation.BatchCursor.getServerCursor:()Lcom/mongodb/ServerCursor;
            areturn
        end local 0 // com.mongodb.client.internal.MongoBatchCursorAdapter this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lcom/mongodb/client/internal/MongoBatchCursorAdapter<TT;>;
    RuntimeVisibleAnnotations: 
      com.mongodb.lang.Nullable()

  public com.mongodb.ServerAddress getServerAddress();
    descriptor: ()Lcom/mongodb/ServerAddress;
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // com.mongodb.client.internal.MongoBatchCursorAdapter this
         0: .line 88
            aload 0 /* this */
            getfield com.mongodb.client.internal.MongoBatchCursorAdapter.batchCursor:Lcom/mongodb/operation/BatchCursor;
            invokeinterface com.mongodb.operation.BatchCursor.getServerAddress:()Lcom/mongodb/ServerAddress;
            areturn
        end local 0 // com.mongodb.client.internal.MongoBatchCursorAdapter this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lcom/mongodb/client/internal/MongoBatchCursorAdapter<TT;>;

  private T getNextInBatch();
    descriptor: ()Ljava/lang/Object;
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=3, locals=2, args_size=1
        start local 0 // com.mongodb.client.internal.MongoBatchCursorAdapter this
         0: .line 92
            aload 0 /* this */
            getfield com.mongodb.client.internal.MongoBatchCursorAdapter.curBatch:Ljava/util/List;
            aload 0 /* this */
            getfield com.mongodb.client.internal.MongoBatchCursorAdapter.curPos:I
            invokeinterface java.util.List.get:(I)Ljava/lang/Object;
            astore 1 /* nextInBatch */
        start local 1 // java.lang.Object nextInBatch
         1: .line 93
            aload 0 /* this */
            getfield com.mongodb.client.internal.MongoBatchCursorAdapter.curPos:I
            aload 0 /* this */
            getfield com.mongodb.client.internal.MongoBatchCursorAdapter.curBatch:Ljava/util/List;
            invokeinterface java.util.List.size:()I
            iconst_1
            isub
            if_icmpge 4
         2: .line 94
            aload 0 /* this */
            dup
            getfield com.mongodb.client.internal.MongoBatchCursorAdapter.curPos:I
            iconst_1
            iadd
            putfield com.mongodb.client.internal.MongoBatchCursorAdapter.curPos:I
         3: .line 95
            goto 6
         4: .line 96
      StackMap locals: java.lang.Object
      StackMap stack:
            aload 0 /* this */
            aconst_null
            putfield com.mongodb.client.internal.MongoBatchCursorAdapter.curBatch:Ljava/util/List;
         5: .line 97
            aload 0 /* this */
            iconst_0
            putfield com.mongodb.client.internal.MongoBatchCursorAdapter.curPos:I
         6: .line 99
      StackMap locals:
      StackMap stack:
            aload 1 /* nextInBatch */
            areturn
        end local 1 // java.lang.Object nextInBatch
        end local 0 // com.mongodb.client.internal.MongoBatchCursorAdapter this
      LocalVariableTable:
        Start  End  Slot         Name  Signature
            0    7     0         this  Lcom/mongodb/client/internal/MongoBatchCursorAdapter<TT;>;
            1    7     1  nextInBatch  TT;
    Signature: ()TT;
}
Signature: <T:Ljava/lang/Object;>Ljava/lang/Object;Lcom/mongodb/client/MongoCursor<TT;>;
SourceFile: "MongoBatchCursorAdapter.java"