public abstract class org.apache.lucene.util.RollingBuffer<T extends org.apache.lucene.util.RollingBuffer$Resettable>
  minor version: 0
  major version: 59
  flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
  this_class: org.apache.lucene.util.RollingBuffer
  super_class: java.lang.Object
{
  private T[] buffer;
    descriptor: [Lorg/apache/lucene/util/RollingBuffer$Resettable;
    flags: (0x0002) ACC_PRIVATE
    Signature: [TT;

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

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

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

  static final boolean $assertionsDisabled;
    descriptor: Z
    flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC

  static void <clinit>();
    descriptor: ()V
    flags: (0x0008) ACC_STATIC
    Code:
      stack=1, locals=0, args_size=0
         0: .line 24
            ldc Lorg/apache/lucene/util/RollingBuffer;
            invokevirtual java.lang.Class.desiredAssertionStatus:()Z
            ifne 1
            iconst_1
            goto 2
      StackMap locals:
      StackMap stack:
         1: iconst_0
      StackMap locals:
      StackMap stack: int
         2: putstatic org.apache.lucene.util.RollingBuffer.$assertionsDisabled:Z
            return
      LocalVariableTable:
        Start  End  Slot  Name  Signature

  public void <init>();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=3, locals=2, args_size=1
        start local 0 // org.apache.lucene.util.RollingBuffer this
         0: .line 45
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
         1: .line 33
            aload 0 /* this */
            bipush 8
            anewarray org.apache.lucene.util.RollingBuffer$Resettable
            putfield org.apache.lucene.util.RollingBuffer.buffer:[Lorg/apache/lucene/util/RollingBuffer$Resettable;
         2: .line 46
            iconst_0
            istore 1 /* idx */
        start local 1 // int idx
         3: goto 6
         4: .line 47
      StackMap locals: org.apache.lucene.util.RollingBuffer int
      StackMap stack:
            aload 0 /* this */
            getfield org.apache.lucene.util.RollingBuffer.buffer:[Lorg/apache/lucene/util/RollingBuffer$Resettable;
            iload 1 /* idx */
            aload 0 /* this */
            invokevirtual org.apache.lucene.util.RollingBuffer.newInstance:()Lorg/apache/lucene/util/RollingBuffer$Resettable;
            aastore
         5: .line 46
            iinc 1 /* idx */ 1
      StackMap locals:
      StackMap stack:
         6: iload 1 /* idx */
            aload 0 /* this */
            getfield org.apache.lucene.util.RollingBuffer.buffer:[Lorg/apache/lucene/util/RollingBuffer$Resettable;
            arraylength
            if_icmplt 4
        end local 1 // int idx
         7: .line 49
            return
        end local 0 // org.apache.lucene.util.RollingBuffer this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    8     0  this  Lorg/apache/lucene/util/RollingBuffer<TT;>;
            3    7     1   idx  I

  protected abstract T newInstance();
    descriptor: ()Lorg/apache/lucene/util/RollingBuffer$Resettable;
    flags: (0x0404) ACC_PROTECTED, ACC_ABSTRACT
    Signature: ()TT;

  public void reset();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=5, locals=1, args_size=1
        start local 0 // org.apache.lucene.util.RollingBuffer this
         0: .line 54
            aload 0 /* this */
            dup
            getfield org.apache.lucene.util.RollingBuffer.nextWrite:I
            iconst_1
            isub
            putfield org.apache.lucene.util.RollingBuffer.nextWrite:I
         1: .line 55
            goto 6
         2: .line 56
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield org.apache.lucene.util.RollingBuffer.nextWrite:I
            iconst_m1
            if_icmpne 4
         3: .line 57
            aload 0 /* this */
            aload 0 /* this */
            getfield org.apache.lucene.util.RollingBuffer.buffer:[Lorg/apache/lucene/util/RollingBuffer$Resettable;
            arraylength
            iconst_1
            isub
            putfield org.apache.lucene.util.RollingBuffer.nextWrite:I
         4: .line 59
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield org.apache.lucene.util.RollingBuffer.buffer:[Lorg/apache/lucene/util/RollingBuffer$Resettable;
            aload 0 /* this */
            dup
            getfield org.apache.lucene.util.RollingBuffer.nextWrite:I
            dup_x1
            iconst_1
            isub
            putfield org.apache.lucene.util.RollingBuffer.nextWrite:I
            aaload
            invokeinterface org.apache.lucene.util.RollingBuffer$Resettable.reset:()V
         5: .line 60
            aload 0 /* this */
            dup
            getfield org.apache.lucene.util.RollingBuffer.count:I
            iconst_1
            isub
            putfield org.apache.lucene.util.RollingBuffer.count:I
         6: .line 55
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield org.apache.lucene.util.RollingBuffer.count:I
            ifgt 2
         7: .line 62
            aload 0 /* this */
            iconst_0
            putfield org.apache.lucene.util.RollingBuffer.nextWrite:I
         8: .line 63
            aload 0 /* this */
            iconst_0
            putfield org.apache.lucene.util.RollingBuffer.nextPos:I
         9: .line 64
            aload 0 /* this */
            iconst_0
            putfield org.apache.lucene.util.RollingBuffer.count:I
        10: .line 65
            return
        end local 0 // org.apache.lucene.util.RollingBuffer this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0   11     0  this  Lorg/apache/lucene/util/RollingBuffer<TT;>;

  private boolean inBounds(int);
    descriptor: (I)Z
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=3, locals=2, args_size=2
        start local 0 // org.apache.lucene.util.RollingBuffer this
        start local 1 // int pos
         0: .line 69
            iload 1 /* pos */
            aload 0 /* this */
            getfield org.apache.lucene.util.RollingBuffer.nextPos:I
            if_icmpge 1
            iload 1 /* pos */
            aload 0 /* this */
            getfield org.apache.lucene.util.RollingBuffer.nextPos:I
            aload 0 /* this */
            getfield org.apache.lucene.util.RollingBuffer.count:I
            isub
            if_icmplt 1
            iconst_1
            ireturn
      StackMap locals:
      StackMap stack:
         1: iconst_0
            ireturn
        end local 1 // int pos
        end local 0 // org.apache.lucene.util.RollingBuffer this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    2     0  this  Lorg/apache/lucene/util/RollingBuffer<TT;>;
            0    2     1   pos  I
    MethodParameters:
      Name  Flags
      pos   

  private int getIndex(int);
    descriptor: (I)I
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=3, locals=3, args_size=2
        start local 0 // org.apache.lucene.util.RollingBuffer this
        start local 1 // int pos
         0: .line 73
            aload 0 /* this */
            getfield org.apache.lucene.util.RollingBuffer.nextWrite:I
            aload 0 /* this */
            getfield org.apache.lucene.util.RollingBuffer.nextPos:I
            iload 1 /* pos */
            isub
            isub
            istore 2 /* index */
        start local 2 // int index
         1: .line 74
            iload 2 /* index */
            ifge 3
         2: .line 75
            iload 2 /* index */
            aload 0 /* this */
            getfield org.apache.lucene.util.RollingBuffer.buffer:[Lorg/apache/lucene/util/RollingBuffer$Resettable;
            arraylength
            iadd
            istore 2 /* index */
         3: .line 77
      StackMap locals: int
      StackMap stack:
            iload 2 /* index */
            ireturn
        end local 2 // int index
        end local 1 // int pos
        end local 0 // org.apache.lucene.util.RollingBuffer this
      LocalVariableTable:
        Start  End  Slot   Name  Signature
            0    4     0   this  Lorg/apache/lucene/util/RollingBuffer<TT;>;
            0    4     1    pos  I
            1    4     2  index  I
    MethodParameters:
      Name  Flags
      pos   

  public T get();
    descriptor: (I)Lorg/apache/lucene/util/RollingBuffer$Resettable;
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=6, locals=4, args_size=2
        start local 0 // org.apache.lucene.util.RollingBuffer this
        start local 1 // int pos
         0: .line 85
            goto 17
         1: .line 86
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield org.apache.lucene.util.RollingBuffer.count:I
            aload 0 /* this */
            getfield org.apache.lucene.util.RollingBuffer.buffer:[Lorg/apache/lucene/util/RollingBuffer$Resettable;
            arraylength
            if_icmpne 12
         2: .line 87
            iconst_1
            aload 0 /* this */
            getfield org.apache.lucene.util.RollingBuffer.count:I
            iadd
            getstatic org.apache.lucene.util.RamUsageEstimator.NUM_BYTES_OBJECT_REF:I
            invokestatic org.apache.lucene.util.ArrayUtil.oversize:(II)I
            anewarray org.apache.lucene.util.RollingBuffer$Resettable
            astore 2 /* newBuffer */
        start local 2 // org.apache.lucene.util.RollingBuffer$Resettable[] newBuffer
         3: .line 89
            aload 0 /* this */
            getfield org.apache.lucene.util.RollingBuffer.buffer:[Lorg/apache/lucene/util/RollingBuffer$Resettable;
            aload 0 /* this */
            getfield org.apache.lucene.util.RollingBuffer.nextWrite:I
            aload 2 /* newBuffer */
            iconst_0
            aload 0 /* this */
            getfield org.apache.lucene.util.RollingBuffer.buffer:[Lorg/apache/lucene/util/RollingBuffer$Resettable;
            arraylength
            aload 0 /* this */
            getfield org.apache.lucene.util.RollingBuffer.nextWrite:I
            isub
            invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
         4: .line 90
            aload 0 /* this */
            getfield org.apache.lucene.util.RollingBuffer.buffer:[Lorg/apache/lucene/util/RollingBuffer$Resettable;
            iconst_0
            aload 2 /* newBuffer */
            aload 0 /* this */
            getfield org.apache.lucene.util.RollingBuffer.buffer:[Lorg/apache/lucene/util/RollingBuffer$Resettable;
            arraylength
            aload 0 /* this */
            getfield org.apache.lucene.util.RollingBuffer.nextWrite:I
            isub
            aload 0 /* this */
            getfield org.apache.lucene.util.RollingBuffer.nextWrite:I
            invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
         5: .line 91
            aload 0 /* this */
            getfield org.apache.lucene.util.RollingBuffer.buffer:[Lorg/apache/lucene/util/RollingBuffer$Resettable;
            arraylength
            istore 3 /* i */
        start local 3 // int i
         6: goto 9
         7: .line 92
      StackMap locals: org.apache.lucene.util.RollingBuffer$Resettable[] int
      StackMap stack:
            aload 2 /* newBuffer */
            iload 3 /* i */
            aload 0 /* this */
            invokevirtual org.apache.lucene.util.RollingBuffer.newInstance:()Lorg/apache/lucene/util/RollingBuffer$Resettable;
            aastore
         8: .line 91
            iinc 3 /* i */ 1
      StackMap locals:
      StackMap stack:
         9: iload 3 /* i */
            aload 2 /* newBuffer */
            arraylength
            if_icmplt 7
        end local 3 // int i
        10: .line 94
            aload 0 /* this */
            aload 0 /* this */
            getfield org.apache.lucene.util.RollingBuffer.buffer:[Lorg/apache/lucene/util/RollingBuffer$Resettable;
            arraylength
            putfield org.apache.lucene.util.RollingBuffer.nextWrite:I
        11: .line 95
            aload 0 /* this */
            aload 2 /* newBuffer */
            putfield org.apache.lucene.util.RollingBuffer.buffer:[Lorg/apache/lucene/util/RollingBuffer$Resettable;
        end local 2 // org.apache.lucene.util.RollingBuffer$Resettable[] newBuffer
        12: .line 97
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield org.apache.lucene.util.RollingBuffer.nextWrite:I
            aload 0 /* this */
            getfield org.apache.lucene.util.RollingBuffer.buffer:[Lorg/apache/lucene/util/RollingBuffer$Resettable;
            arraylength
            if_icmpne 14
        13: .line 98
            aload 0 /* this */
            iconst_0
            putfield org.apache.lucene.util.RollingBuffer.nextWrite:I
        14: .line 101
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            dup
            getfield org.apache.lucene.util.RollingBuffer.nextWrite:I
            iconst_1
            iadd
            putfield org.apache.lucene.util.RollingBuffer.nextWrite:I
        15: .line 102
            aload 0 /* this */
            dup
            getfield org.apache.lucene.util.RollingBuffer.nextPos:I
            iconst_1
            iadd
            putfield org.apache.lucene.util.RollingBuffer.nextPos:I
        16: .line 103
            aload 0 /* this */
            dup
            getfield org.apache.lucene.util.RollingBuffer.count:I
            iconst_1
            iadd
            putfield org.apache.lucene.util.RollingBuffer.count:I
        17: .line 85
      StackMap locals:
      StackMap stack:
            iload 1 /* pos */
            aload 0 /* this */
            getfield org.apache.lucene.util.RollingBuffer.nextPos:I
            if_icmpge 1
        18: .line 105
            getstatic org.apache.lucene.util.RollingBuffer.$assertionsDisabled:Z
            ifne 19
            aload 0 /* this */
            iload 1 /* pos */
            invokevirtual org.apache.lucene.util.RollingBuffer.inBounds:(I)Z
            ifne 19
            new java.lang.AssertionError
            dup
            new java.lang.StringBuilder
            dup
            ldc "pos="
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
            iload 1 /* pos */
            invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
            ldc " nextPos="
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            aload 0 /* this */
            getfield org.apache.lucene.util.RollingBuffer.nextPos:I
            invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
            ldc " count="
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            aload 0 /* this */
            getfield org.apache.lucene.util.RollingBuffer.count:I
            invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
            invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
            athrow
        19: .line 106
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            iload 1 /* pos */
            invokevirtual org.apache.lucene.util.RollingBuffer.getIndex:(I)I
            istore 2 /* index */
        start local 2 // int index
        20: .line 109
            aload 0 /* this */
            getfield org.apache.lucene.util.RollingBuffer.buffer:[Lorg/apache/lucene/util/RollingBuffer$Resettable;
            iload 2 /* index */
            aaload
            areturn
        end local 2 // int index
        end local 1 // int pos
        end local 0 // org.apache.lucene.util.RollingBuffer this
      LocalVariableTable:
        Start  End  Slot       Name  Signature
            0   21     0       this  Lorg/apache/lucene/util/RollingBuffer<TT;>;
            0   21     1        pos  I
            3   12     2  newBuffer  [Lorg/apache/lucene/util/RollingBuffer$Resettable;
            6   10     3          i  I
           20   21     2      index  I
    Signature: (I)TT;
    MethodParameters:
      Name  Flags
      pos   

  public int getMaxPos();
    descriptor: ()I
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=1, args_size=1
        start local 0 // org.apache.lucene.util.RollingBuffer this
         0: .line 115
            aload 0 /* this */
            getfield org.apache.lucene.util.RollingBuffer.nextPos:I
            iconst_1
            isub
            ireturn
        end local 0 // org.apache.lucene.util.RollingBuffer this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lorg/apache/lucene/util/RollingBuffer<TT;>;

  public int getBufferSize();
    descriptor: ()I
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // org.apache.lucene.util.RollingBuffer this
         0: .line 120
            aload 0 /* this */
            getfield org.apache.lucene.util.RollingBuffer.count:I
            ireturn
        end local 0 // org.apache.lucene.util.RollingBuffer this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lorg/apache/lucene/util/RollingBuffer<TT;>;

  public void freeBefore(int);
    descriptor: (I)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=5, locals=5, args_size=2
        start local 0 // org.apache.lucene.util.RollingBuffer this
        start local 1 // int pos
         0: .line 124
            aload 0 /* this */
            getfield org.apache.lucene.util.RollingBuffer.count:I
            aload 0 /* this */
            getfield org.apache.lucene.util.RollingBuffer.nextPos:I
            iload 1 /* pos */
            isub
            isub
            istore 2 /* toFree */
        start local 2 // int toFree
         1: .line 125
            getstatic org.apache.lucene.util.RollingBuffer.$assertionsDisabled:Z
            ifne 2
            iload 2 /* toFree */
            ifge 2
            new java.lang.AssertionError
            dup
            invokespecial java.lang.AssertionError.<init>:()V
            athrow
         2: .line 126
      StackMap locals: int
      StackMap stack:
            getstatic org.apache.lucene.util.RollingBuffer.$assertionsDisabled:Z
            ifne 3
            iload 2 /* toFree */
            aload 0 /* this */
            getfield org.apache.lucene.util.RollingBuffer.count:I
            if_icmple 3
            new java.lang.AssertionError
            dup
            new java.lang.StringBuilder
            dup
            ldc "toFree="
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
            iload 2 /* toFree */
            invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
            ldc " count="
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            aload 0 /* this */
            getfield org.apache.lucene.util.RollingBuffer.count:I
            invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
            invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
            athrow
         3: .line 127
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield org.apache.lucene.util.RollingBuffer.nextWrite:I
            aload 0 /* this */
            getfield org.apache.lucene.util.RollingBuffer.count:I
            isub
            istore 3 /* index */
        start local 3 // int index
         4: .line 128
            iload 3 /* index */
            ifge 6
         5: .line 129
            iload 3 /* index */
            aload 0 /* this */
            getfield org.apache.lucene.util.RollingBuffer.buffer:[Lorg/apache/lucene/util/RollingBuffer$Resettable;
            arraylength
            iadd
            istore 3 /* index */
         6: .line 131
      StackMap locals: int
      StackMap stack:
            iconst_0
            istore 4 /* i */
        start local 4 // int i
         7: goto 13
         8: .line 132
      StackMap locals: int
      StackMap stack:
            iload 3 /* index */
            aload 0 /* this */
            getfield org.apache.lucene.util.RollingBuffer.buffer:[Lorg/apache/lucene/util/RollingBuffer$Resettable;
            arraylength
            if_icmpne 10
         9: .line 133
            iconst_0
            istore 3 /* index */
        10: .line 136
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield org.apache.lucene.util.RollingBuffer.buffer:[Lorg/apache/lucene/util/RollingBuffer$Resettable;
            iload 3 /* index */
            aaload
            invokeinterface org.apache.lucene.util.RollingBuffer$Resettable.reset:()V
        11: .line 137
            iinc 3 /* index */ 1
        12: .line 131
            iinc 4 /* i */ 1
      StackMap locals:
      StackMap stack:
        13: iload 4 /* i */
            iload 2 /* toFree */
            if_icmplt 8
        end local 4 // int i
        14: .line 139
            aload 0 /* this */
            dup
            getfield org.apache.lucene.util.RollingBuffer.count:I
            iload 2 /* toFree */
            isub
            putfield org.apache.lucene.util.RollingBuffer.count:I
        15: .line 140
            return
        end local 3 // int index
        end local 2 // int toFree
        end local 1 // int pos
        end local 0 // org.apache.lucene.util.RollingBuffer this
      LocalVariableTable:
        Start  End  Slot    Name  Signature
            0   16     0    this  Lorg/apache/lucene/util/RollingBuffer<TT;>;
            0   16     1     pos  I
            1   16     2  toFree  I
            4   16     3   index  I
            7   14     4       i  I
    MethodParameters:
      Name  Flags
      pos   
}
Signature: <T::Lorg/apache/lucene/util/RollingBuffer$Resettable;>Ljava/lang/Object;
SourceFile: "RollingBuffer.java"
NestMembers:
  org.apache.lucene.util.RollingBuffer$Resettable
InnerClasses:
  public abstract Resettable = org.apache.lucene.util.RollingBuffer$Resettable of org.apache.lucene.util.RollingBuffer