public class org.apache.commons.collections4.iterators.LoopingIterator<E> implements org.apache.commons.collections4.ResettableIterator<E>
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.commons.collections4.iterators.LoopingIterator
super_class: java.lang.Object
{
private final java.util.Collection<? extends E> collection;
descriptor: Ljava/util/Collection;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Collection<+TE;>;
private java.util.Iterator<? extends E> iterator;
descriptor: Ljava/util/Iterator;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/Iterator<+TE;>;
public void <init>(java.util.Collection<? extends E>);
descriptor: (Ljava/util/Collection;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 1
ifnonnull 3
2: new java.lang.NullPointerException
dup
ldc "The collection must not be null"
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals: org.apache.commons.collections4.iterators.LoopingIterator java.util.Collection
StackMap stack:
aload 0
aload 1
putfield org.apache.commons.collections4.iterators.LoopingIterator.collection:Ljava/util/Collection;
4: aload 0
invokevirtual org.apache.commons.collections4.iterators.LoopingIterator.reset:()V
5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/apache/commons/collections4/iterators/LoopingIterator<TE;>;
0 6 1 coll Ljava/util/Collection<+TE;>;
Signature: (Ljava/util/Collection<+TE;>;)V
MethodParameters:
Name Flags
coll 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.iterators.LoopingIterator.collection:Ljava/util/Collection;
invokeinterface java.util.Collection.size:()I
ifle 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/apache/commons/collections4/iterators/LoopingIterator<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.iterators.LoopingIterator.collection:Ljava/util/Collection;
invokeinterface java.util.Collection.size:()I
ifne 2
1: new java.util.NoSuchElementException
dup
ldc "There are no elements for this iterator to loop on"
invokespecial java.util.NoSuchElementException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.commons.collections4.iterators.LoopingIterator.iterator:Ljava/util/Iterator;
invokeinterface java.util.Iterator.hasNext:()Z
ifne 4
3: aload 0
invokevirtual org.apache.commons.collections4.iterators.LoopingIterator.reset:()V
4: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.commons.collections4.iterators.LoopingIterator.iterator:Ljava/util/Iterator;
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/apache/commons/collections4/iterators/LoopingIterator<TE;>;
Signature: ()TE;
public void remove();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.commons.collections4.iterators.LoopingIterator.iterator:Ljava/util/Iterator;
invokeinterface java.util.Iterator.remove:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/commons/collections4/iterators/LoopingIterator<TE;>;
public void reset();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
aload 0
getfield org.apache.commons.collections4.iterators.LoopingIterator.collection:Ljava/util/Collection;
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
putfield org.apache.commons.collections4.iterators.LoopingIterator.iterator:Ljava/util/Iterator;
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/commons/collections4/iterators/LoopingIterator<TE;>;
public int size();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.commons.collections4.iterators.LoopingIterator.collection:Ljava/util/Collection;
invokeinterface java.util.Collection.size:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/commons/collections4/iterators/LoopingIterator<TE;>;
}
Signature: <E:Ljava/lang/Object;>Ljava/lang/Object;Lorg/apache/commons/collections4/ResettableIterator<TE;>;
SourceFile: "LoopingIterator.java"