public class io.vertx.core.impl.utils.ConcurrentCyclicSequence<T> implements java.lang.Iterable<T>, java.util.Iterator<T>
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: io.vertx.core.impl.utils.ConcurrentCyclicSequence
super_class: java.lang.Object
{
private static final java.lang.Object[] EMPTY_ARRAY;
descriptor: [Ljava/lang/Object;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private final java.util.concurrent.atomic.AtomicInteger pos;
descriptor: Ljava/util/concurrent/atomic/AtomicInteger;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.Object[] elements;
descriptor: [Ljava/lang/Object;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: iconst_0
anewarray java.lang.Object
putstatic io.vertx.core.impl.utils.ConcurrentCyclicSequence.EMPTY_ARRAY:[Ljava/lang/Object;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
iconst_0
getstatic io.vertx.core.impl.utils.ConcurrentCyclicSequence.EMPTY_ARRAY:[Ljava/lang/Object;
invokespecial io.vertx.core.impl.utils.ConcurrentCyclicSequence.<init>:(I[Ljava/lang/Object;)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/vertx/core/impl/utils/ConcurrentCyclicSequence<TT;>;
public void <init>();
descriptor: ([Ljava/lang/Object;)V
flags: (0x0081) ACC_PUBLIC, ACC_VARARGS
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iconst_0
aload 1
aload 1
arraylength
ldc [Ljava/lang/Object;
invokestatic java.util.Arrays.copyOf:([Ljava/lang/Object;ILjava/lang/Class;)[Ljava/lang/Object;
invokespecial io.vertx.core.impl.utils.ConcurrentCyclicSequence.<init>:(I[Ljava/lang/Object;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/vertx/core/impl/utils/ConcurrentCyclicSequence<TT;>;
0 2 1 elements [Ljava/lang/Object;
Signature: ([TT;)V
RuntimeVisibleAnnotations:
java.lang.SafeVarargs()
MethodParameters:
Name Flags
elements
private void <init>(int, java.lang.Object[]);
descriptor: (I[Ljava/lang/Object;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, 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
new java.util.concurrent.atomic.AtomicInteger
dup
iload 1
invokespecial java.util.concurrent.atomic.AtomicInteger.<init>:(I)V
putfield io.vertx.core.impl.utils.ConcurrentCyclicSequence.pos:Ljava/util/concurrent/atomic/AtomicInteger;
2: aload 0
aload 2
putfield io.vertx.core.impl.utils.ConcurrentCyclicSequence.elements:[Ljava/lang/Object;
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lio/vertx/core/impl/utils/ConcurrentCyclicSequence<TT;>;
0 4 1 pos I
0 4 2 elements [Ljava/lang/Object;
MethodParameters:
Name Flags
pos
elements
public int index();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield io.vertx.core.impl.utils.ConcurrentCyclicSequence.elements:[Ljava/lang/Object;
arraylength
ifle 1
aload 0
getfield io.vertx.core.impl.utils.ConcurrentCyclicSequence.pos:Ljava/util/concurrent/atomic/AtomicInteger;
invokevirtual java.util.concurrent.atomic.AtomicInteger.get:()I
aload 0
getfield io.vertx.core.impl.utils.ConcurrentCyclicSequence.elements:[Ljava/lang/Object;
arraylength
irem
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/vertx/core/impl/utils/ConcurrentCyclicSequence<TT;>;
public T first();
descriptor: ()Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield io.vertx.core.impl.utils.ConcurrentCyclicSequence.elements:[Ljava/lang/Object;
arraylength
ifle 1
aload 0
getfield io.vertx.core.impl.utils.ConcurrentCyclicSequence.elements:[Ljava/lang/Object;
iconst_0
aaload
goto 2
StackMap locals:
StackMap stack:
1: aconst_null
StackMap locals:
StackMap stack: java.lang.Object
2: areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/vertx/core/impl/utils/ConcurrentCyclicSequence<TT;>;
Signature: ()TT;
public io.vertx.core.impl.utils.ConcurrentCyclicSequence<T> add(T);
descriptor: (Ljava/lang/Object;)Lio/vertx/core/impl/utils/ConcurrentCyclicSequence;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=2
start local 0 start local 1 0: aload 0
getfield io.vertx.core.impl.utils.ConcurrentCyclicSequence.elements:[Ljava/lang/Object;
arraylength
istore 2
start local 2 1: aload 0
getfield io.vertx.core.impl.utils.ConcurrentCyclicSequence.elements:[Ljava/lang/Object;
iload 2
iconst_1
iadd
invokestatic java.util.Arrays.copyOf:([Ljava/lang/Object;I)[Ljava/lang/Object;
astore 3
start local 3 2: aload 3
iload 2
aload 1
aastore
3: new io.vertx.core.impl.utils.ConcurrentCyclicSequence
dup
aload 0
getfield io.vertx.core.impl.utils.ConcurrentCyclicSequence.pos:Ljava/util/concurrent/atomic/AtomicInteger;
invokevirtual java.util.concurrent.atomic.AtomicInteger.get:()I
aload 3
invokespecial io.vertx.core.impl.utils.ConcurrentCyclicSequence.<init>:(I[Ljava/lang/Object;)V
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lio/vertx/core/impl/utils/ConcurrentCyclicSequence<TT;>;
0 4 1 element TT;
1 4 2 len I
2 4 3 copy [Ljava/lang/Object;
Signature: (TT;)Lio/vertx/core/impl/utils/ConcurrentCyclicSequence<TT;>;
MethodParameters:
Name Flags
element
public io.vertx.core.impl.utils.ConcurrentCyclicSequence<T> remove(T);
descriptor: (Ljava/lang/Object;)Lio/vertx/core/impl/utils/ConcurrentCyclicSequence;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=5, args_size=2
start local 0 start local 1 0: aload 0
getfield io.vertx.core.impl.utils.ConcurrentCyclicSequence.elements:[Ljava/lang/Object;
arraylength
istore 2
start local 2 1: iconst_0
istore 3
start local 3 2: goto 11
3: StackMap locals: int int
StackMap stack:
aload 1
aload 0
getfield io.vertx.core.impl.utils.ConcurrentCyclicSequence.elements:[Ljava/lang/Object;
iload 3
aaload
invokestatic java.util.Objects.equals:(Ljava/lang/Object;Ljava/lang/Object;)Z
ifeq 10
4: iload 2
iconst_1
if_icmple 9
5: iload 2
iconst_1
isub
anewarray java.lang.Object
astore 4
start local 4 6: aload 0
getfield io.vertx.core.impl.utils.ConcurrentCyclicSequence.elements:[Ljava/lang/Object;
iconst_0
aload 4
iconst_0
iload 3
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
7: aload 0
getfield io.vertx.core.impl.utils.ConcurrentCyclicSequence.elements:[Ljava/lang/Object;
iload 3
iconst_1
iadd
aload 4
iload 3
iload 2
iload 3
isub
iconst_1
isub
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
8: new io.vertx.core.impl.utils.ConcurrentCyclicSequence
dup
aload 0
getfield io.vertx.core.impl.utils.ConcurrentCyclicSequence.pos:Ljava/util/concurrent/atomic/AtomicInteger;
invokevirtual java.util.concurrent.atomic.AtomicInteger.get:()I
aload 4
arraylength
irem
aload 4
invokespecial io.vertx.core.impl.utils.ConcurrentCyclicSequence.<init>:(I[Ljava/lang/Object;)V
areturn
end local 4 9: StackMap locals:
StackMap stack:
new io.vertx.core.impl.utils.ConcurrentCyclicSequence
dup
invokespecial io.vertx.core.impl.utils.ConcurrentCyclicSequence.<init>:()V
areturn
10: StackMap locals:
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
11: iload 3
iload 2
if_icmplt 3
end local 3 12: aload 0
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lio/vertx/core/impl/utils/ConcurrentCyclicSequence<TT;>;
0 13 1 element TT;
1 13 2 len I
2 12 3 i I
6 9 4 copy [Ljava/lang/Object;
Signature: (TT;)Lio/vertx/core/impl/utils/ConcurrentCyclicSequence<TT;>;
MethodParameters:
Name Flags
element
public boolean hasNext();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/vertx/core/impl/utils/ConcurrentCyclicSequence<TT;>;
public T next();
descriptor: ()Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=1
start local 0 0: aload 0
getfield io.vertx.core.impl.utils.ConcurrentCyclicSequence.elements:[Ljava/lang/Object;
arraylength
istore 1
start local 1 1: iload 1
tableswitch { // 0 - 1
0: 2
1: 3
default: 4
}
2: StackMap locals: int
StackMap stack:
aconst_null
areturn
3: StackMap locals:
StackMap stack:
aload 0
getfield io.vertx.core.impl.utils.ConcurrentCyclicSequence.elements:[Ljava/lang/Object;
iconst_0
aaload
areturn
4: StackMap locals:
StackMap stack:
aload 0
getfield io.vertx.core.impl.utils.ConcurrentCyclicSequence.pos:Ljava/util/concurrent/atomic/AtomicInteger;
invokevirtual java.util.concurrent.atomic.AtomicInteger.getAndIncrement:()I
istore 2
start local 2 5: aload 0
getfield io.vertx.core.impl.utils.ConcurrentCyclicSequence.elements:[Ljava/lang/Object;
iload 2
iload 1
irem
invokestatic java.lang.Math.abs:(I)I
aaload
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lio/vertx/core/impl/utils/ConcurrentCyclicSequence<TT;>;
1 6 1 len I
5 6 2 p I
Signature: ()TT;
public int size();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.vertx.core.impl.utils.ConcurrentCyclicSequence.elements:[Ljava/lang/Object;
arraylength
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/vertx/core/impl/utils/ConcurrentCyclicSequence<TT;>;
public java.util.Iterator<T> iterator();
descriptor: ()Ljava/util/Iterator;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.vertx.core.impl.utils.ConcurrentCyclicSequence.elements:[Ljava/lang/Object;
invokestatic java.util.Arrays.asList:([Ljava/lang/Object;)Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/vertx/core/impl/utils/ConcurrentCyclicSequence<TT;>;
Signature: ()Ljava/util/Iterator<TT;>;
}
Signature: <T:Ljava/lang/Object;>Ljava/lang/Object;Ljava/lang/Iterable<TT;>;Ljava/util/Iterator<TT;>;
SourceFile: "ConcurrentCyclicSequence.java"