class org.apache.commons.collections4.multiset.AbstractMultiSet$MultiSetIterator<E> implements java.util.Iterator<E>
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: org.apache.commons.collections4.multiset.AbstractMultiSet$MultiSetIterator
super_class: java.lang.Object
{
private final org.apache.commons.collections4.multiset.AbstractMultiSet<E> parent;
descriptor: Lorg/apache/commons/collections4/multiset/AbstractMultiSet;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Lorg/apache/commons/collections4/multiset/AbstractMultiSet<TE;>;
private final java.util.Iterator<org.apache.commons.collections4.MultiSet$Entry<E>> entryIterator;
descriptor: Ljava/util/Iterator;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Iterator<Lorg/apache/commons/collections4/MultiSet$Entry<TE;>;>;
private org.apache.commons.collections4.MultiSet$Entry<E> current;
descriptor: Lorg/apache/commons/collections4/MultiSet$Entry;
flags: (0x0002) ACC_PRIVATE
Signature: Lorg/apache/commons/collections4/MultiSet$Entry<TE;>;
private int itemCount;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private boolean canRemove;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
public void <init>(org.apache.commons.collections4.multiset.AbstractMultiSet<E>);
descriptor: (Lorg/apache/commons/collections4/multiset/AbstractMultiSet;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield org.apache.commons.collections4.multiset.AbstractMultiSet$MultiSetIterator.parent:Lorg/apache/commons/collections4/multiset/AbstractMultiSet;
2: aload 0
aload 1
invokevirtual org.apache.commons.collections4.multiset.AbstractMultiSet.entrySet:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
putfield org.apache.commons.collections4.multiset.AbstractMultiSet$MultiSetIterator.entryIterator:Ljava/util/Iterator;
3: aload 0
aconst_null
putfield org.apache.commons.collections4.multiset.AbstractMultiSet$MultiSetIterator.current:Lorg/apache/commons/collections4/MultiSet$Entry;
4: aload 0
iconst_0
putfield org.apache.commons.collections4.multiset.AbstractMultiSet$MultiSetIterator.canRemove:Z
5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/apache/commons/collections4/multiset/AbstractMultiSet$MultiSetIterator<TE;>;
0 6 1 parent Lorg/apache/commons/collections4/multiset/AbstractMultiSet<TE;>;
Signature: (Lorg/apache/commons/collections4/multiset/AbstractMultiSet<TE;>;)V
MethodParameters:
Name Flags
parent final
public boolean hasNext();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.commons.collections4.multiset.AbstractMultiSet$MultiSetIterator.itemCount:I
ifgt 1
aload 0
getfield org.apache.commons.collections4.multiset.AbstractMultiSet$MultiSetIterator.entryIterator:Ljava/util/Iterator;
invokeinterface java.util.Iterator.hasNext:()Z
ifne 1
iconst_0
ireturn
StackMap locals:
StackMap stack:
1: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/commons/collections4/multiset/AbstractMultiSet$MultiSetIterator<TE;>;
public E next();
descriptor: ()Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.commons.collections4.multiset.AbstractMultiSet$MultiSetIterator.itemCount:I
ifne 3
1: aload 0
aload 0
getfield org.apache.commons.collections4.multiset.AbstractMultiSet$MultiSetIterator.entryIterator:Ljava/util/Iterator;
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.commons.collections4.MultiSet$Entry
putfield org.apache.commons.collections4.multiset.AbstractMultiSet$MultiSetIterator.current:Lorg/apache/commons/collections4/MultiSet$Entry;
2: aload 0
aload 0
getfield org.apache.commons.collections4.multiset.AbstractMultiSet$MultiSetIterator.current:Lorg/apache/commons/collections4/MultiSet$Entry;
invokeinterface org.apache.commons.collections4.MultiSet$Entry.getCount:()I
putfield org.apache.commons.collections4.multiset.AbstractMultiSet$MultiSetIterator.itemCount:I
3: StackMap locals:
StackMap stack:
aload 0
iconst_1
putfield org.apache.commons.collections4.multiset.AbstractMultiSet$MultiSetIterator.canRemove:Z
4: aload 0
dup
getfield org.apache.commons.collections4.multiset.AbstractMultiSet$MultiSetIterator.itemCount:I
iconst_1
isub
putfield org.apache.commons.collections4.multiset.AbstractMultiSet$MultiSetIterator.itemCount:I
5: aload 0
getfield org.apache.commons.collections4.multiset.AbstractMultiSet$MultiSetIterator.current:Lorg/apache/commons/collections4/MultiSet$Entry;
invokeinterface org.apache.commons.collections4.MultiSet$Entry.getElement:()Ljava/lang/Object;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/apache/commons/collections4/multiset/AbstractMultiSet$MultiSetIterator<TE;>;
Signature: ()TE;
public void remove();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield org.apache.commons.collections4.multiset.AbstractMultiSet$MultiSetIterator.canRemove:Z
ifne 2
1: new java.lang.IllegalStateException
dup
invokespecial java.lang.IllegalStateException.<init>:()V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.commons.collections4.multiset.AbstractMultiSet$MultiSetIterator.current:Lorg/apache/commons/collections4/MultiSet$Entry;
invokeinterface org.apache.commons.collections4.MultiSet$Entry.getCount:()I
istore 1
start local 1 3: iload 1
iconst_1
if_icmple 6
4: aload 0
getfield org.apache.commons.collections4.multiset.AbstractMultiSet$MultiSetIterator.parent:Lorg/apache/commons/collections4/multiset/AbstractMultiSet;
aload 0
getfield org.apache.commons.collections4.multiset.AbstractMultiSet$MultiSetIterator.current:Lorg/apache/commons/collections4/MultiSet$Entry;
invokeinterface org.apache.commons.collections4.MultiSet$Entry.getElement:()Ljava/lang/Object;
invokevirtual org.apache.commons.collections4.multiset.AbstractMultiSet.remove:(Ljava/lang/Object;)Z
pop
5: goto 7
6: StackMap locals: int
StackMap stack:
aload 0
getfield org.apache.commons.collections4.multiset.AbstractMultiSet$MultiSetIterator.entryIterator:Ljava/util/Iterator;
invokeinterface java.util.Iterator.remove:()V
7: StackMap locals:
StackMap stack:
aload 0
iconst_0
putfield org.apache.commons.collections4.multiset.AbstractMultiSet$MultiSetIterator.canRemove:Z
8: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/apache/commons/collections4/multiset/AbstractMultiSet$MultiSetIterator<TE;>;
3 9 1 count I
}
Signature: <E:Ljava/lang/Object;>Ljava/lang/Object;Ljava/util/Iterator<TE;>;
SourceFile: "AbstractMultiSet.java"
NestHost: org.apache.commons.collections4.multiset.AbstractMultiSet
InnerClasses:
public abstract Entry = org.apache.commons.collections4.MultiSet$Entry of org.apache.commons.collections4.MultiSet
private MultiSetIterator = org.apache.commons.collections4.multiset.AbstractMultiSet$MultiSetIterator of org.apache.commons.collections4.multiset.AbstractMultiSet