public abstract class java.util.AbstractCollection<E> implements java.util.Collection<E>
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: java.util.AbstractCollection
super_class: java.lang.Object
{
protected void <init>();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljava/util/AbstractCollection<TE;>;
public abstract java.util.Iterator<E> iterator();
descriptor: ()Ljava/util/Iterator;
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
Signature: ()Ljava/util/Iterator<TE;>;
public abstract int size();
descriptor: ()I
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
public boolean isEmpty();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual java.util.AbstractCollection.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 Ljava/util/AbstractCollection<TE;>;
public boolean contains(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual java.util.AbstractCollection.iterator:()Ljava/util/Iterator;
astore 2
start local 2 1: aload 1
ifnonnull 9
2: goto 5
3: StackMap locals: java.util.Iterator
StackMap stack:
aload 2
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
ifnonnull 5
4: iconst_1
ireturn
5: StackMap locals:
StackMap stack:
aload 2
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
6: goto 10
7: StackMap locals:
StackMap stack:
aload 1
aload 2
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
invokevirtual java.lang.Object.equals:(Ljava/lang/Object;)Z
ifeq 9
8: iconst_1
ireturn
9: StackMap locals:
StackMap stack:
aload 2
invokeinterface java.util.Iterator.hasNext:()Z
ifne 7
10: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Ljava/util/AbstractCollection<TE;>;
0 11 1 o Ljava/lang/Object;
1 11 2 it Ljava/util/Iterator<TE;>;
MethodParameters:
Name Flags
o
public java.lang.Object[] toArray();
descriptor: ()[Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=1
start local 0 0: aload 0
invokevirtual java.util.AbstractCollection.size:()I
anewarray java.lang.Object
astore 1
start local 1 1: aload 0
invokevirtual java.util.AbstractCollection.iterator:()Ljava/util/Iterator;
astore 2
start local 2 2: iconst_0
istore 3
start local 3 3: goto 8
4: StackMap locals: java.lang.Object[] java.util.Iterator int
StackMap stack:
aload 2
invokeinterface java.util.Iterator.hasNext:()Z
ifne 6
5: aload 1
iload 3
invokestatic java.util.Arrays.copyOf:([Ljava/lang/Object;I)[Ljava/lang/Object;
areturn
6: StackMap locals:
StackMap stack:
aload 1
iload 3
aload 2
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
aastore
7: iinc 3 1
StackMap locals:
StackMap stack:
8: iload 3
aload 1
arraylength
if_icmplt 4
end local 3 9: aload 2
invokeinterface java.util.Iterator.hasNext:()Z
ifeq 10
aload 1
aload 2
invokestatic java.util.AbstractCollection.finishToArray:([Ljava/lang/Object;Ljava/util/Iterator;)[Ljava/lang/Object;
goto 11
StackMap locals:
StackMap stack:
10: aload 1
StackMap locals:
StackMap stack: java.lang.Object[]
11: areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Ljava/util/AbstractCollection<TE;>;
1 12 1 r [Ljava/lang/Object;
2 12 2 it Ljava/util/Iterator<TE;>;
3 9 3 i I
public <T> T[] toArray();
descriptor: ([Ljava/lang/Object;)[Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=6, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual java.util.AbstractCollection.size:()I
istore 2
start local 2 1: aload 1
arraylength
iload 2
if_icmplt 2
aload 1
goto 4
2: StackMap locals: int
StackMap stack:
aload 1
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getComponentType:()Ljava/lang/Class;
iload 2
invokestatic java.lang.reflect.Array.newInstance:(Ljava/lang/Class;I)Ljava/lang/Object;
3: checkcast java.lang.Object[]
4: StackMap locals:
StackMap stack: java.lang.Object[]
astore 3
start local 3 5: aload 0
invokevirtual java.util.AbstractCollection.iterator:()Ljava/util/Iterator;
astore 4
start local 4 6: iconst_0
istore 5
start local 5 7: goto 20
8: StackMap locals: java.lang.Object[] java.util.Iterator int
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 18
9: aload 1
aload 3
if_acmpne 12
10: aload 3
iload 5
aconst_null
aastore
11: goto 17
StackMap locals:
StackMap stack:
12: aload 1
arraylength
iload 5
if_icmpge 14
13: aload 3
iload 5
invokestatic java.util.Arrays.copyOf:([Ljava/lang/Object;I)[Ljava/lang/Object;
areturn
14: StackMap locals:
StackMap stack:
aload 3
iconst_0
aload 1
iconst_0
iload 5
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
15: aload 1
arraylength
iload 5
if_icmple 17
16: aload 1
iload 5
aconst_null
aastore
17: StackMap locals:
StackMap stack:
aload 1
areturn
18: StackMap locals:
StackMap stack:
aload 3
iload 5
aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
aastore
19: iinc 5 1
StackMap locals:
StackMap stack:
20: iload 5
aload 3
arraylength
if_icmplt 8
end local 5 21: aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifeq 22
aload 3
aload 4
invokestatic java.util.AbstractCollection.finishToArray:([Ljava/lang/Object;Ljava/util/Iterator;)[Ljava/lang/Object;
goto 23
StackMap locals:
StackMap stack:
22: aload 3
StackMap locals:
StackMap stack: java.lang.Object[]
23: areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 24 0 this Ljava/util/AbstractCollection<TE;>;
0 24 1 a [Ljava/lang/Object;
1 24 2 size I
5 24 3 r [Ljava/lang/Object;
6 24 4 it Ljava/util/Iterator<TE;>;
7 21 5 i I
Signature: <T:Ljava/lang/Object;>([TT;)[TT;
MethodParameters:
Name Flags
a
private static <T> T[] finishToArray(T[], java.util.Iterator<?>);
descriptor: ([Ljava/lang/Object;Ljava/util/Iterator;)[Ljava/lang/Object;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=4, args_size=2
start local 0 start local 1 0: aload 0
arraylength
istore 2
start local 2 1: iload 2
istore 3
start local 3 2: goto 10
3: StackMap locals: int int
StackMap stack:
iload 3
iload 2
if_icmpne 9
4: iload 2
5: iconst_1
6: iload 2
iconst_1
ishr
iconst_1
iadd
7: invokestatic jdk.internal.util.ArraysSupport.newLength:(III)I
istore 2
8: aload 0
iload 2
invokestatic java.util.Arrays.copyOf:([Ljava/lang/Object;I)[Ljava/lang/Object;
astore 0
9: StackMap locals:
StackMap stack:
aload 0
iload 3
iinc 3 1
aload 1
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
aastore
10: StackMap locals:
StackMap stack:
aload 1
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
11: iload 3
iload 2
if_icmpne 12
aload 0
goto 13
StackMap locals:
StackMap stack:
12: aload 0
iload 3
invokestatic java.util.Arrays.copyOf:([Ljava/lang/Object;I)[Ljava/lang/Object;
StackMap locals:
StackMap stack: java.lang.Object[]
13: areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 r [Ljava/lang/Object;
0 14 1 it Ljava/util/Iterator<*>;
1 14 2 len I
2 14 3 i I
Signature: <T:Ljava/lang/Object;>([TT;Ljava/util/Iterator<*>;)[TT;
MethodParameters:
Name Flags
r
it
public boolean add();
descriptor: (Ljava/lang/Object;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: new java.lang.UnsupportedOperationException
dup
invokespecial java.lang.UnsupportedOperationException.<init>:()V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/util/AbstractCollection<TE;>;
0 1 1 e TE;
Signature: (TE;)Z
MethodParameters:
Name Flags
e
public boolean remove(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual java.util.AbstractCollection.iterator:()Ljava/util/Iterator;
astore 2
start local 2 1: aload 1
ifnonnull 11
2: goto 6
3: StackMap locals: java.util.Iterator
StackMap stack:
aload 2
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
ifnonnull 6
4: aload 2
invokeinterface java.util.Iterator.remove:()V
5: iconst_1
ireturn
6: StackMap locals:
StackMap stack:
aload 2
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
7: goto 12
8: StackMap locals:
StackMap stack:
aload 1
aload 2
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
invokevirtual java.lang.Object.equals:(Ljava/lang/Object;)Z
ifeq 11
9: aload 2
invokeinterface java.util.Iterator.remove:()V
10: iconst_1
ireturn
11: StackMap locals:
StackMap stack:
aload 2
invokeinterface java.util.Iterator.hasNext:()Z
ifne 8
12: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Ljava/util/AbstractCollection<TE;>;
0 13 1 o Ljava/lang/Object;
1 13 2 it Ljava/util/Iterator<TE;>;
MethodParameters:
Name Flags
o
public boolean containsAll(java.util.Collection<?>);
descriptor: (Ljava/util/Collection;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: aload 1
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 3
goto 4
StackMap locals: java.util.AbstractCollection java.util.Collection top java.util.Iterator
StackMap stack:
1: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
astore 2
start local 2 2: aload 0
aload 2
invokevirtual java.util.AbstractCollection.contains:(Ljava/lang/Object;)Z
ifne 4
3: iconst_0
ireturn
end local 2 4: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 1
5: iconst_1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljava/util/AbstractCollection<TE;>;
0 6 1 c Ljava/util/Collection<*>;
2 4 2 e Ljava/lang/Object;
Signature: (Ljava/util/Collection<*>;)Z
MethodParameters:
Name Flags
c
public boolean addAll(java.util.Collection<? extends E>);
descriptor: (Ljava/util/Collection;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=5, args_size=2
start local 0 start local 1 0: iconst_0
istore 2
start local 2 1: aload 1
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 4
goto 5
StackMap locals: java.util.AbstractCollection java.util.Collection int top java.util.Iterator
StackMap stack:
2: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.Object
astore 3
start local 3 3: aload 0
aload 3
invokevirtual java.util.AbstractCollection.add:(Ljava/lang/Object;)Z
ifeq 5
4: iconst_1
istore 2
end local 3 5: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
6: iload 2
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljava/util/AbstractCollection<TE;>;
0 7 1 c Ljava/util/Collection<+TE;>;
1 7 2 modified Z
3 5 3 e TE;
Signature: (Ljava/util/Collection<+TE;>;)Z
MethodParameters:
Name Flags
c
public boolean removeAll(java.util.Collection<?>);
descriptor: (Ljava/util/Collection;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: aload 1
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: iconst_0
istore 2
start local 2 2: aload 0
invokevirtual java.util.AbstractCollection.iterator:()Ljava/util/Iterator;
astore 3
start local 3 3: goto 7
4: StackMap locals: int java.util.Iterator
StackMap stack:
aload 1
aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
invokeinterface java.util.Collection.contains:(Ljava/lang/Object;)Z
ifeq 7
5: aload 3
invokeinterface java.util.Iterator.remove:()V
6: iconst_1
istore 2
7: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 4
8: iload 2
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Ljava/util/AbstractCollection<TE;>;
0 9 1 c Ljava/util/Collection<*>;
2 9 2 modified Z
3 9 3 it Ljava/util/Iterator<*>;
Signature: (Ljava/util/Collection<*>;)Z
MethodParameters:
Name Flags
c
public boolean retainAll(java.util.Collection<?>);
descriptor: (Ljava/util/Collection;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: aload 1
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: iconst_0
istore 2
start local 2 2: aload 0
invokevirtual java.util.AbstractCollection.iterator:()Ljava/util/Iterator;
astore 3
start local 3 3: goto 7
4: StackMap locals: int java.util.Iterator
StackMap stack:
aload 1
aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
invokeinterface java.util.Collection.contains:(Ljava/lang/Object;)Z
ifne 7
5: aload 3
invokeinterface java.util.Iterator.remove:()V
6: iconst_1
istore 2
7: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 4
8: iload 2
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Ljava/util/AbstractCollection<TE;>;
0 9 1 c Ljava/util/Collection<*>;
2 9 2 modified Z
3 9 3 it Ljava/util/Iterator<TE;>;
Signature: (Ljava/util/Collection<*>;)Z
MethodParameters:
Name Flags
c
public void clear();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual java.util.AbstractCollection.iterator:()Ljava/util/Iterator;
astore 1
start local 1 1: goto 4
2: StackMap locals: java.util.Iterator
StackMap stack:
aload 1
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
pop
3: aload 1
invokeinterface java.util.Iterator.remove:()V
4: StackMap locals:
StackMap stack:
aload 1
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljava/util/AbstractCollection<TE;>;
1 6 1 it Ljava/util/Iterator<TE;>;
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=1
start local 0 0: aload 0
invokevirtual java.util.AbstractCollection.iterator:()Ljava/util/Iterator;
astore 1
start local 1 1: aload 1
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
2: ldc "[]"
areturn
3: StackMap locals: java.util.Iterator
StackMap stack:
new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
astore 2
start local 2 4: aload 2
bipush 91
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
5: StackMap locals: java.lang.StringBuilder
StackMap stack:
aload 1
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
astore 3
start local 3 6: aload 2
aload 3
aload 0
if_acmpne 7
ldc "(this Collection)"
goto 8
StackMap locals: java.util.AbstractCollection java.util.Iterator java.lang.StringBuilder java.lang.Object
StackMap stack: java.lang.StringBuilder
7: aload 3
StackMap locals: java.util.AbstractCollection java.util.Iterator java.lang.StringBuilder java.lang.Object
StackMap stack: java.lang.StringBuilder java.lang.Object
8: invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
pop
9: aload 1
invokeinterface java.util.Iterator.hasNext:()Z
ifne 11
10: aload 2
bipush 93
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
11: StackMap locals:
StackMap stack:
aload 2
bipush 44
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
bipush 32
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
end local 3 12: goto 5
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Ljava/util/AbstractCollection<TE;>;
1 13 1 it Ljava/util/Iterator<TE;>;
4 13 2 sb Ljava/lang/StringBuilder;
6 12 3 e TE;
}
Signature: <E:Ljava/lang/Object;>Ljava/lang/Object;Ljava/util/Collection<TE;>;
SourceFile: "AbstractCollection.java"