public class org.glassfish.grizzly.utils.ArraySet<T> implements java.util.Set<T>
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.glassfish.grizzly.utils.ArraySet
super_class: java.lang.Object
{
private volatile T[] array;
descriptor: [Ljava/lang/Object;
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
Signature: [TT;
private final java.lang.Object sync;
descriptor: Ljava/lang/Object;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.Class<T> clazz;
descriptor: Ljava/lang/Class;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/lang/Class<TT;>;
private final boolean replaceElementIfEquals;
descriptor: Z
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public void <init>(java.lang.Class<T>);
descriptor: (Ljava/lang/Class;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
iconst_1
invokespecial org.glassfish.grizzly.utils.ArraySet.<init>:(Ljava/lang/Class;Z)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/glassfish/grizzly/utils/ArraySet<TT;>;
0 2 1 clazz Ljava/lang/Class<TT;>;
Signature: (Ljava/lang/Class<TT;>;)V
MethodParameters:
Name Flags
clazz final
public void <init>(java.lang.Class<T>, );
descriptor: (Ljava/lang/Class;Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, 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.lang.Object
dup
invokespecial java.lang.Object.<init>:()V
putfield org.glassfish.grizzly.utils.ArraySet.sync:Ljava/lang/Object;
2: aload 0
aload 1
putfield org.glassfish.grizzly.utils.ArraySet.clazz:Ljava/lang/Class;
3: aload 0
iload 2
putfield org.glassfish.grizzly.utils.ArraySet.replaceElementIfEquals:Z
4: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/glassfish/grizzly/utils/ArraySet<TT;>;
0 5 1 clazz Ljava/lang/Class<TT;>;
0 5 2 replaceElementIfEquals Z
Signature: (Ljava/lang/Class<TT;>;Z)V
MethodParameters:
Name Flags
clazz final
replaceElementIfEquals final
public final boolean addAll();
descriptor: ([Ljava/lang/Object;)Z
flags: (0x0091) ACC_PUBLIC, ACC_FINAL, ACC_VARARGS
Code:
stack=4, locals=8, args_size=2
start local 0 start local 1 0: aload 1
ifnull 1
aload 1
arraylength
ifne 2
1: StackMap locals:
StackMap stack:
iconst_0
ireturn
2: StackMap locals:
StackMap stack:
aload 0
getfield org.glassfish.grizzly.utils.ArraySet.sync:Ljava/lang/Object;
dup
astore 2
monitorenter
3: iconst_0
istore 3
start local 3 4: aload 0
getfield org.glassfish.grizzly.utils.ArraySet.array:[Ljava/lang/Object;
ifnonnull 8
5: aload 0
aload 0
getfield org.glassfish.grizzly.utils.ArraySet.clazz:Ljava/lang/Class;
iconst_1
invokestatic java.lang.reflect.Array.newInstance:(Ljava/lang/Class;I)Ljava/lang/Object;
checkcast java.lang.Object[]
putfield org.glassfish.grizzly.utils.ArraySet.array:[Ljava/lang/Object;
6: aload 0
getfield org.glassfish.grizzly.utils.ArraySet.array:[Ljava/lang/Object;
iconst_0
aload 1
iconst_0
aaload
aastore
7: iconst_1
istore 3
8: StackMap locals: java.lang.Object int
StackMap stack:
iconst_0
istore 4
start local 4 9: iload 3
istore 5
start local 5 10: goto 18
11: StackMap locals: int int
StackMap stack:
aload 1
iload 5
aaload
astore 6
start local 6 12: aload 0
getfield org.glassfish.grizzly.utils.ArraySet.array:[Ljava/lang/Object;
astore 7
start local 7 13: aload 0
aload 0
getfield org.glassfish.grizzly.utils.ArraySet.array:[Ljava/lang/Object;
aload 6
aload 0
getfield org.glassfish.grizzly.utils.ArraySet.replaceElementIfEquals:Z
invokestatic org.glassfish.grizzly.utils.ArrayUtils.addUnique:([Ljava/lang/Object;Ljava/lang/Object;Z)[Ljava/lang/Object;
putfield org.glassfish.grizzly.utils.ArraySet.array:[Ljava/lang/Object;
14: iload 4
aload 7
aload 0
getfield org.glassfish.grizzly.utils.ArraySet.array:[Ljava/lang/Object;
if_acmpeq 15
iconst_1
goto 16
StackMap locals: org.glassfish.grizzly.utils.ArraySet java.lang.Object[] java.lang.Object int int int java.lang.Object java.lang.Object[]
StackMap stack: int
15: iconst_0
StackMap locals: org.glassfish.grizzly.utils.ArraySet java.lang.Object[] java.lang.Object int int int java.lang.Object java.lang.Object[]
StackMap stack: int int
16: ior
istore 4
end local 7 end local 6 17: iinc 5 1
StackMap locals:
StackMap stack:
18: iload 5
aload 1
arraylength
if_icmplt 11
end local 5 19: iload 4
aload 2
monitorexit
20: ireturn
end local 4 end local 3 21: StackMap locals: org.glassfish.grizzly.utils.ArraySet java.lang.Object[] java.lang.Object
StackMap stack: java.lang.Throwable
aload 2
monitorexit
22: athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 23 0 this Lorg/glassfish/grizzly/utils/ArraySet<TT;>;
0 23 1 elements [Ljava/lang/Object;
4 21 3 startIdx I
9 21 4 result Z
10 19 5 i I
12 17 6 element TT;
13 17 7 oldArray [Ljava/lang/Object;
Exception table:
from to target type
3 20 21 any
21 22 21 any
Signature: ([TT;)Z
MethodParameters:
Name Flags
elements final
public boolean addAll(java.util.Collection<? extends T>);
descriptor: (Ljava/util/Collection;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=8, args_size=2
start local 0 start local 1 0: aload 1
invokeinterface java.util.Collection.isEmpty:()Z
ifeq 2
1: iconst_0
ireturn
2: StackMap locals:
StackMap stack:
aload 0
getfield org.glassfish.grizzly.utils.ArraySet.sync:Ljava/lang/Object;
dup
astore 2
monitorenter
3: aload 0
getfield org.glassfish.grizzly.utils.ArraySet.array:[Ljava/lang/Object;
ifnonnull 4
iconst_1
goto 5
StackMap locals: java.lang.Object
StackMap stack:
4: iconst_0
StackMap locals:
StackMap stack: int
5: istore 3
start local 3 6: iload 3
ifeq 8
7: aload 0
aload 0
getfield org.glassfish.grizzly.utils.ArraySet.clazz:Ljava/lang/Class;
iconst_1
invokestatic java.lang.reflect.Array.newInstance:(Ljava/lang/Class;I)Ljava/lang/Object;
checkcast java.lang.Object[]
putfield org.glassfish.grizzly.utils.ArraySet.array:[Ljava/lang/Object;
8: StackMap locals: int
StackMap stack:
iconst_0
istore 4
start local 4 9: aload 1
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 6
goto 20
StackMap locals: org.glassfish.grizzly.utils.ArraySet java.util.Collection java.lang.Object int int top java.util.Iterator
StackMap stack:
10: aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.Object
astore 5
start local 5 11: iload 3
ifeq 15
12: iconst_0
istore 3
13: aload 0
getfield org.glassfish.grizzly.utils.ArraySet.array:[Ljava/lang/Object;
iconst_0
aload 5
aastore
14: goto 20
15: StackMap locals: org.glassfish.grizzly.utils.ArraySet java.util.Collection java.lang.Object int int java.lang.Object java.util.Iterator
StackMap stack:
aload 0
getfield org.glassfish.grizzly.utils.ArraySet.array:[Ljava/lang/Object;
astore 7
start local 7 16: aload 0
aload 0
getfield org.glassfish.grizzly.utils.ArraySet.array:[Ljava/lang/Object;
aload 5
aload 0
getfield org.glassfish.grizzly.utils.ArraySet.replaceElementIfEquals:Z
invokestatic org.glassfish.grizzly.utils.ArrayUtils.addUnique:([Ljava/lang/Object;Ljava/lang/Object;Z)[Ljava/lang/Object;
putfield org.glassfish.grizzly.utils.ArraySet.array:[Ljava/lang/Object;
17: iload 4
aload 7
aload 0
getfield org.glassfish.grizzly.utils.ArraySet.array:[Ljava/lang/Object;
if_acmpeq 18
iconst_1
goto 19
StackMap locals: org.glassfish.grizzly.utils.ArraySet java.util.Collection java.lang.Object int int java.lang.Object java.util.Iterator java.lang.Object[]
StackMap stack: int
18: iconst_0
StackMap locals: org.glassfish.grizzly.utils.ArraySet java.util.Collection java.lang.Object int int java.lang.Object java.util.Iterator java.lang.Object[]
StackMap stack: int int
19: ior
istore 4
end local 7 end local 5 20: StackMap locals: org.glassfish.grizzly.utils.ArraySet java.util.Collection java.lang.Object int int top java.util.Iterator
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 10
21: iload 4
aload 2
monitorexit
22: ireturn
end local 4 end local 3 23: StackMap locals: org.glassfish.grizzly.utils.ArraySet java.util.Collection java.lang.Object
StackMap stack: java.lang.Throwable
aload 2
monitorexit
24: athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 25 0 this Lorg/glassfish/grizzly/utils/ArraySet<TT;>;
0 25 1 collection Ljava/util/Collection<+TT;>;
6 23 3 initArray Z
9 23 4 result Z
11 20 5 element TT;
16 20 7 oldArray [Ljava/lang/Object;
Exception table:
from to target type
3 22 23 any
23 24 23 any
Signature: (Ljava/util/Collection<+TT;>;)Z
MethodParameters:
Name Flags
collection
public final boolean add(org.glassfish.grizzly.utils.ArraySet<T>);
descriptor: (Lorg/glassfish/grizzly/utils/ArraySet;)Z
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=4, locals=8, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual org.glassfish.grizzly.utils.ArraySet.getArray:()[Ljava/lang/Object;
astore 2
start local 2 1: aload 2
ifnonnull 3
2: iconst_0
ireturn
3: StackMap locals: java.lang.Object[]
StackMap stack:
aload 0
getfield org.glassfish.grizzly.utils.ArraySet.sync:Ljava/lang/Object;
dup
astore 3
monitorenter
4: aload 0
getfield org.glassfish.grizzly.utils.ArraySet.array:[Ljava/lang/Object;
ifnonnull 8
5: aload 0
aload 2
aload 2
arraylength
invokestatic java.util.Arrays.copyOf:([Ljava/lang/Object;I)[Ljava/lang/Object;
putfield org.glassfish.grizzly.utils.ArraySet.array:[Ljava/lang/Object;
6: aload 3
monitorexit
7: iconst_1
ireturn
8: StackMap locals: java.lang.Object
StackMap stack:
iconst_0
istore 4
start local 4 9: iconst_0
istore 5
start local 5 10: goto 18
11: StackMap locals: int int
StackMap stack:
aload 2
iload 5
aaload
astore 6
start local 6 12: aload 0
getfield org.glassfish.grizzly.utils.ArraySet.array:[Ljava/lang/Object;
astore 7
start local 7 13: aload 0
aload 0
getfield org.glassfish.grizzly.utils.ArraySet.array:[Ljava/lang/Object;
aload 6
aload 0
getfield org.glassfish.grizzly.utils.ArraySet.replaceElementIfEquals:Z
invokestatic org.glassfish.grizzly.utils.ArrayUtils.addUnique:([Ljava/lang/Object;Ljava/lang/Object;Z)[Ljava/lang/Object;
putfield org.glassfish.grizzly.utils.ArraySet.array:[Ljava/lang/Object;
14: iload 4
aload 7
aload 0
getfield org.glassfish.grizzly.utils.ArraySet.array:[Ljava/lang/Object;
if_acmpeq 15
iconst_1
goto 16
StackMap locals: org.glassfish.grizzly.utils.ArraySet org.glassfish.grizzly.utils.ArraySet java.lang.Object[] java.lang.Object int int java.lang.Object java.lang.Object[]
StackMap stack: int
15: iconst_0
StackMap locals: org.glassfish.grizzly.utils.ArraySet org.glassfish.grizzly.utils.ArraySet java.lang.Object[] java.lang.Object int int java.lang.Object java.lang.Object[]
StackMap stack: int int
16: ior
istore 4
end local 7 end local 6 17: iinc 5 1
StackMap locals:
StackMap stack:
18: iload 5
aload 2
arraylength
if_icmplt 11
end local 5 19: iload 4
aload 3
monitorexit
20: ireturn
end local 4 21: StackMap locals: org.glassfish.grizzly.utils.ArraySet org.glassfish.grizzly.utils.ArraySet java.lang.Object[] java.lang.Object
StackMap stack: java.lang.Throwable
aload 3
monitorexit
22: athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 23 0 this Lorg/glassfish/grizzly/utils/ArraySet<TT;>;
0 23 1 source Lorg/glassfish/grizzly/utils/ArraySet<TT;>;
1 23 2 sourceArraySet [Ljava/lang/Object;
9 21 4 result Z
10 19 5 i I
12 17 6 element TT;
13 17 7 oldArray [Ljava/lang/Object;
Exception table:
from to target type
4 7 21 any
8 20 21 any
21 22 21 any
Signature: (Lorg/glassfish/grizzly/utils/ArraySet<TT;>;)Z
MethodParameters:
Name Flags
source
public final boolean removeAll(java.lang.Object[]);
descriptor: ([Ljava/lang/Object;)Z
flags: (0x0091) ACC_PUBLIC, ACC_FINAL, ACC_VARARGS
Code:
stack=3, locals=9, args_size=2
start local 0 start local 1 0: aload 1
arraylength
ifne 2
1: iconst_0
ireturn
2: StackMap locals:
StackMap stack:
aload 0
getfield org.glassfish.grizzly.utils.ArraySet.sync:Ljava/lang/Object;
dup
astore 2
monitorenter
3: aload 0
getfield org.glassfish.grizzly.utils.ArraySet.array:[Ljava/lang/Object;
ifnonnull 6
4: aload 2
monitorexit
5: iconst_0
ireturn
6: StackMap locals: java.lang.Object
StackMap stack:
iconst_0
istore 3
start local 3 7: aload 1
dup
astore 7
arraylength
istore 6
iconst_0
istore 5
goto 15
StackMap locals: org.glassfish.grizzly.utils.ArraySet java.lang.Object[] java.lang.Object int top int int java.lang.Object[]
StackMap stack:
8: aload 7
iload 5
aaload
astore 4
start local 4 9: aload 0
getfield org.glassfish.grizzly.utils.ArraySet.array:[Ljava/lang/Object;
astore 8
start local 8 10: aload 0
aload 0
getfield org.glassfish.grizzly.utils.ArraySet.array:[Ljava/lang/Object;
aload 4
invokestatic org.glassfish.grizzly.utils.ArrayUtils.remove:([Ljava/lang/Object;Ljava/lang/Object;)[Ljava/lang/Object;
putfield org.glassfish.grizzly.utils.ArraySet.array:[Ljava/lang/Object;
11: iload 3
aload 8
aload 0
getfield org.glassfish.grizzly.utils.ArraySet.array:[Ljava/lang/Object;
if_acmpeq 12
iconst_1
goto 13
StackMap locals: org.glassfish.grizzly.utils.ArraySet java.lang.Object[] java.lang.Object int java.lang.Object int int java.lang.Object[] java.lang.Object[]
StackMap stack: int
12: iconst_0
StackMap locals: org.glassfish.grizzly.utils.ArraySet java.lang.Object[] java.lang.Object int java.lang.Object int int java.lang.Object[] java.lang.Object[]
StackMap stack: int int
13: ior
istore 3
end local 8 end local 4 14: iinc 5 1
StackMap locals: org.glassfish.grizzly.utils.ArraySet java.lang.Object[] java.lang.Object int top int int java.lang.Object[]
StackMap stack:
15: iload 5
iload 6
if_icmplt 8
16: iload 3
aload 2
monitorexit
17: ireturn
end local 3 18: StackMap locals: org.glassfish.grizzly.utils.ArraySet java.lang.Object[] java.lang.Object
StackMap stack: java.lang.Throwable
aload 2
monitorexit
19: athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 20 0 this Lorg/glassfish/grizzly/utils/ArraySet<TT;>;
0 20 1 elements [Ljava/lang/Object;
7 18 3 result Z
9 14 4 element Ljava/lang/Object;
10 14 8 oldArray [Ljava/lang/Object;
Exception table:
from to target type
3 5 18 any
6 17 18 any
18 19 18 any
MethodParameters:
Name Flags
elements
public final T[] getArray();
descriptor: ()[Ljava/lang/Object;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.glassfish.grizzly.utils.ArraySet.array:[Ljava/lang/Object;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/utils/ArraySet<TT;>;
Signature: ()[TT;
public final T[] getArrayCopy();
descriptor: ()[Ljava/lang/Object;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield org.glassfish.grizzly.utils.ArraySet.array:[Ljava/lang/Object;
astore 1
start local 1 1: aload 1
ifnonnull 3
2: aconst_null
areturn
3: StackMap locals: java.lang.Object[]
StackMap stack:
aload 1
aload 1
arraylength
invokestatic java.util.Arrays.copyOf:([Ljava/lang/Object;I)[Ljava/lang/Object;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/glassfish/grizzly/utils/ArraySet<TT;>;
1 4 1 localArray [Ljava/lang/Object;
Signature: ()[TT;
public final T[] obtainArrayCopy();
descriptor: ()[Ljava/lang/Object;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield org.glassfish.grizzly.utils.ArraySet.array:[Ljava/lang/Object;
astore 1
start local 1 1: aload 1
ifnonnull 2
aload 0
getfield org.glassfish.grizzly.utils.ArraySet.clazz:Ljava/lang/Class;
iconst_0
invokestatic java.lang.reflect.Array.newInstance:(Ljava/lang/Class;I)Ljava/lang/Object;
checkcast java.lang.Object[]
areturn
2: StackMap locals: java.lang.Object[]
StackMap stack:
aload 1
aload 1
arraylength
invokestatic java.util.Arrays.copyOf:([Ljava/lang/Object;I)[Ljava/lang/Object;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/glassfish/grizzly/utils/ArraySet<TT;>;
1 3 1 localArray [Ljava/lang/Object;
Signature: ()[TT;
public void clear();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
aconst_null
putfield org.glassfish.grizzly.utils.ArraySet.array:[Ljava/lang/Object;
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/glassfish/grizzly/utils/ArraySet<TT;>;
public int size();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=1
start local 0 0: aload 0
getfield org.glassfish.grizzly.utils.ArraySet.array:[Ljava/lang/Object;
astore 1
start local 1 1: aload 1
ifnull 2
aload 1
arraylength
goto 3
StackMap locals: java.lang.Object[]
StackMap stack:
2: iconst_0
StackMap locals:
StackMap stack: int
3: ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/glassfish/grizzly/utils/ArraySet<TT;>;
1 4 1 localArray [Ljava/lang/Object;
public boolean isEmpty();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.glassfish.grizzly.utils.ArraySet.size:()I
ifne 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 Lorg/glassfish/grizzly/utils/ArraySet<TT;>;
public boolean add();
descriptor: (Ljava/lang/Object;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 2
1: iconst_0
ireturn
2: StackMap locals:
StackMap stack:
aload 0
getfield org.glassfish.grizzly.utils.ArraySet.sync:Ljava/lang/Object;
dup
astore 2
monitorenter
3: aload 0
getfield org.glassfish.grizzly.utils.ArraySet.array:[Ljava/lang/Object;
ifnonnull 8
4: aload 0
aload 0
getfield org.glassfish.grizzly.utils.ArraySet.clazz:Ljava/lang/Class;
iconst_1
invokestatic java.lang.reflect.Array.newInstance:(Ljava/lang/Class;I)Ljava/lang/Object;
checkcast java.lang.Object[]
putfield org.glassfish.grizzly.utils.ArraySet.array:[Ljava/lang/Object;
5: aload 0
getfield org.glassfish.grizzly.utils.ArraySet.array:[Ljava/lang/Object;
iconst_0
aload 1
aastore
6: aload 2
monitorexit
7: iconst_1
ireturn
8: StackMap locals: java.lang.Object
StackMap stack:
aload 0
getfield org.glassfish.grizzly.utils.ArraySet.array:[Ljava/lang/Object;
astore 3
start local 3 9: aload 0
aload 0
getfield org.glassfish.grizzly.utils.ArraySet.array:[Ljava/lang/Object;
aload 1
aload 0
getfield org.glassfish.grizzly.utils.ArraySet.replaceElementIfEquals:Z
invokestatic org.glassfish.grizzly.utils.ArrayUtils.addUnique:([Ljava/lang/Object;Ljava/lang/Object;Z)[Ljava/lang/Object;
putfield org.glassfish.grizzly.utils.ArraySet.array:[Ljava/lang/Object;
10: aload 3
aload 0
getfield org.glassfish.grizzly.utils.ArraySet.array:[Ljava/lang/Object;
if_acmpeq 11
iconst_1
goto 12
StackMap locals: java.lang.Object[]
StackMap stack:
11: iconst_0
StackMap locals:
StackMap stack: int
12: aload 2
monitorexit
13: ireturn
end local 3 14: StackMap locals: org.glassfish.grizzly.utils.ArraySet java.lang.Object java.lang.Object
StackMap stack: java.lang.Throwable
aload 2
monitorexit
15: athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Lorg/glassfish/grizzly/utils/ArraySet<TT;>;
0 16 1 element TT;
9 14 3 oldArray [Ljava/lang/Object;
Exception table:
from to target type
3 7 14 any
8 13 14 any
14 15 14 any
Signature: (TT;)Z
MethodParameters:
Name Flags
element final
public boolean contains(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: aload 0
getfield org.glassfish.grizzly.utils.ArraySet.array:[Ljava/lang/Object;
astore 2
start local 2 1: aload 2
ifnonnull 3
2: iconst_0
ireturn
3: StackMap locals: java.lang.Object[]
StackMap stack:
iconst_0
istore 3
start local 3 4: goto 8
5: StackMap locals: int
StackMap stack:
aload 2
iload 3
aaload
aload 1
invokevirtual java.lang.Object.equals:(Ljava/lang/Object;)Z
ifeq 7
6: iconst_1
ireturn
7: StackMap locals:
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
8: iload 3
aload 2
arraylength
if_icmplt 5
end local 3 9: iconst_0
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lorg/glassfish/grizzly/utils/ArraySet<TT;>;
0 10 1 o Ljava/lang/Object;
1 10 2 localArray [Ljava/lang/Object;
4 9 3 i I
MethodParameters:
Name Flags
o
public java.lang.Object[] toArray();
descriptor: ()[Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield org.glassfish.grizzly.utils.ArraySet.array:[Ljava/lang/Object;
astore 1
start local 1 1: aload 1
aload 1
arraylength
invokestatic java.util.Arrays.copyOf:([Ljava/lang/Object;I)[Ljava/lang/Object;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/glassfish/grizzly/utils/ArraySet<TT;>;
1 2 1 localArray [Ljava/lang/Object;
public <K> K[] toArray();
descriptor: ([Ljava/lang/Object;)[Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=2
start local 0 start local 1 0: aload 0
getfield org.glassfish.grizzly.utils.ArraySet.array:[Ljava/lang/Object;
astore 2
start local 2 1: aload 2
ifnonnull 3
2: aload 1
areturn
3: StackMap locals: java.lang.Object[]
StackMap stack:
aload 2
arraylength
istore 3
start local 3 4: aload 1
arraylength
iload 3
if_icmpge 6
5: aload 2
iload 3
aload 1
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokestatic java.util.Arrays.copyOf:([Ljava/lang/Object;ILjava/lang/Class;)[Ljava/lang/Object;
areturn
6: StackMap locals: int
StackMap stack:
aload 2
iconst_0
aload 1
iconst_0
aload 2
arraylength
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
7: aload 1
arraylength
iload 3
if_icmple 9
8: aload 1
iload 3
aconst_null
aastore
9: StackMap locals:
StackMap stack:
aload 1
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lorg/glassfish/grizzly/utils/ArraySet<TT;>;
0 10 1 a [Ljava/lang/Object;
1 10 2 localArray [Ljava/lang/Object;
4 10 3 size I
Signature: <K:Ljava/lang/Object;>([TK;)[TK;
MethodParameters:
Name Flags
a
public boolean remove(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 1
aastore
invokevirtual org.glassfish.grizzly.utils.ArraySet.removeAll:([Ljava/lang/Object;)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/utils/ArraySet<TT;>;
0 1 1 o Ljava/lang/Object;
MethodParameters:
Name Flags
o
public boolean containsAll(java.util.Collection<?>);
descriptor: (Ljava/util/Collection;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=5, args_size=2
start local 0 start local 1 0: aload 1
invokeinterface java.util.Collection.isEmpty:()Z
ifeq 2
1: iconst_1
ireturn
2: StackMap locals:
StackMap stack:
aload 0
getfield org.glassfish.grizzly.utils.ArraySet.array:[Ljava/lang/Object;
astore 2
start local 2 3: aload 1
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 4
goto 7
StackMap locals: org.glassfish.grizzly.utils.ArraySet java.util.Collection java.lang.Object[] top java.util.Iterator
StackMap stack:
4: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
astore 3
start local 3 5: aload 2
aload 3
invokestatic org.glassfish.grizzly.utils.ArrayUtils.indexOf:([Ljava/lang/Object;Ljava/lang/Object;)I
iconst_m1
if_icmpne 7
6: iconst_0
ireturn
end local 3 7: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 4
8: iconst_1
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/glassfish/grizzly/utils/ArraySet<TT;>;
0 9 1 collection Ljava/util/Collection<*>;
3 9 2 localArray [Ljava/lang/Object;
5 7 3 element Ljava/lang/Object;
Signature: (Ljava/util/Collection<*>;)Z
MethodParameters:
Name Flags
collection
public boolean retainAll(java.util.Collection<?>);
descriptor: (Ljava/util/Collection;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=7, args_size=2
start local 0 start local 1 0: aload 0
getfield org.glassfish.grizzly.utils.ArraySet.array:[Ljava/lang/Object;
astore 2
start local 2 1: aload 2
ifnonnull 3
2: iconst_0
ireturn
3: StackMap locals: java.lang.Object[]
StackMap stack:
aload 0
getfield org.glassfish.grizzly.utils.ArraySet.clazz:Ljava/lang/Class;
4: aload 2
arraylength
aload 1
invokeinterface java.util.Collection.size:()I
invokestatic java.lang.Math.min:(II)I
5: invokestatic java.lang.reflect.Array.newInstance:(Ljava/lang/Class;I)Ljava/lang/Object;
checkcast java.lang.Object[]
astore 3
start local 3 6: iconst_0
istore 4
start local 4 7: iconst_0
istore 5
start local 5 8: goto 13
9: StackMap locals: java.lang.Object[] int int
StackMap stack:
aload 2
iload 5
aaload
astore 6
start local 6 10: aload 1
aload 6
invokeinterface java.util.Collection.contains:(Ljava/lang/Object;)Z
ifeq 12
11: aload 3
iload 4
iinc 4 1
aload 6
aastore
end local 6 12: StackMap locals:
StackMap stack:
iinc 5 1
StackMap locals:
StackMap stack:
13: iload 5
aload 2
arraylength
if_icmplt 9
end local 5 14: iload 4
aload 2
arraylength
if_icmpne 16
15: iconst_0
ireturn
16: StackMap locals:
StackMap stack:
aload 0
aload 3
iload 4
invokestatic java.util.Arrays.copyOf:([Ljava/lang/Object;I)[Ljava/lang/Object;
putfield org.glassfish.grizzly.utils.ArraySet.array:[Ljava/lang/Object;
17: 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 18 0 this Lorg/glassfish/grizzly/utils/ArraySet<TT;>;
0 18 1 collection Ljava/util/Collection<*>;
1 18 2 localArray [Ljava/lang/Object;
6 18 3 newArray [Ljava/lang/Object;
7 18 4 newSize I
8 14 5 i I
10 12 6 elem TT;
Signature: (Ljava/util/Collection<*>;)Z
MethodParameters:
Name Flags
collection final
public boolean removeAll(java.util.Collection<?>);
descriptor: (Ljava/util/Collection;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=7, args_size=2
start local 0 start local 1 0: aload 0
getfield org.glassfish.grizzly.utils.ArraySet.array:[Ljava/lang/Object;
astore 2
start local 2 1: aload 2
ifnonnull 3
2: iconst_0
ireturn
3: StackMap locals: java.lang.Object[]
StackMap stack:
aload 0
getfield org.glassfish.grizzly.utils.ArraySet.clazz:Ljava/lang/Class;
aload 2
arraylength
invokestatic java.lang.reflect.Array.newInstance:(Ljava/lang/Class;I)Ljava/lang/Object;
checkcast java.lang.Object[]
astore 3
start local 3 4: iconst_0
istore 4
start local 4 5: iconst_0
istore 5
start local 5 6: goto 11
7: StackMap locals: java.lang.Object[] int int
StackMap stack:
aload 2
iload 5
aaload
astore 6
start local 6 8: aload 1
aload 6
invokeinterface java.util.Collection.contains:(Ljava/lang/Object;)Z
ifne 10
9: aload 3
iload 4
iinc 4 1
aload 6
aastore
end local 6 10: StackMap locals:
StackMap stack:
iinc 5 1
StackMap locals:
StackMap stack:
11: iload 5
aload 2
arraylength
if_icmplt 7
end local 5 12: iload 4
aload 2
arraylength
if_icmpne 14
13: iconst_0
ireturn
14: StackMap locals:
StackMap stack:
aload 0
aload 3
iload 4
invokestatic java.util.Arrays.copyOf:([Ljava/lang/Object;I)[Ljava/lang/Object;
putfield org.glassfish.grizzly.utils.ArraySet.array:[Ljava/lang/Object;
15: 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 16 0 this Lorg/glassfish/grizzly/utils/ArraySet<TT;>;
0 16 1 collection Ljava/util/Collection<*>;
1 16 2 localArray [Ljava/lang/Object;
4 16 3 newArray [Ljava/lang/Object;
5 16 4 newSize I
6 12 5 i I
8 10 6 elem TT;
Signature: (Ljava/util/Collection<*>;)Z
MethodParameters:
Name Flags
collection
public java.util.Iterator<T> iterator();
descriptor: ()Ljava/util/Iterator;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new org.glassfish.grizzly.utils.ArraySet$Itr
dup
aload 0
invokespecial org.glassfish.grizzly.utils.ArraySet$Itr.<init>:(Lorg/glassfish/grizzly/utils/ArraySet;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/utils/ArraySet<TT;>;
Signature: ()Ljava/util/Iterator<TT;>;
}
Signature: <T:Ljava/lang/Object;>Ljava/lang/Object;Ljava/util/Set<TT;>;
SourceFile: "ArraySet.java"
NestMembers:
org.glassfish.grizzly.utils.ArraySet$Itr
InnerClasses:
private Itr = org.glassfish.grizzly.utils.ArraySet$Itr of org.glassfish.grizzly.utils.ArraySet