public final class org.eclipse.collections.impl.lazy.iterator.TakeIterator<T> implements java.util.Iterator<T>
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: org.eclipse.collections.impl.lazy.iterator.TakeIterator
super_class: java.lang.Object
{
private final java.util.Iterator<T> iterator;
descriptor: Ljava/util/Iterator;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Iterator<TT;>;
private final int count;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private int currentIndex;
descriptor: I
flags: (0x0002) ACC_PRIVATE
public void <init>(java.lang.Iterable<T>, );
descriptor: (Ljava/lang/Iterable;I)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
aload 1
invokeinterface java.lang.Iterable.iterator:()Ljava/util/Iterator;
iload 2
invokespecial org.eclipse.collections.impl.lazy.iterator.TakeIterator.<init>:(Ljava/util/Iterator;I)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/eclipse/collections/impl/lazy/iterator/TakeIterator<TT;>;
0 2 1 iterable Ljava/lang/Iterable<TT;>;
0 2 2 count I
Signature: (Ljava/lang/Iterable<TT;>;I)V
MethodParameters:
Name Flags
iterable
count
public void <init>(java.util.Iterator<T>, );
descriptor: (Ljava/util/Iterator;I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, 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
aload 1
putfield org.eclipse.collections.impl.lazy.iterator.TakeIterator.iterator:Ljava/util/Iterator;
2: aload 0
iload 2
putfield org.eclipse.collections.impl.lazy.iterator.TakeIterator.count:I
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/eclipse/collections/impl/lazy/iterator/TakeIterator<TT;>;
0 4 1 iterator Ljava/util/Iterator<TT;>;
0 4 2 count I
Signature: (Ljava/util/Iterator<TT;>;I)V
MethodParameters:
Name Flags
iterator
count
public boolean hasNext();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.eclipse.collections.impl.lazy.iterator.TakeIterator.currentIndex:I
aload 0
getfield org.eclipse.collections.impl.lazy.iterator.TakeIterator.count:I
if_icmpge 1
aload 0
getfield org.eclipse.collections.impl.lazy.iterator.TakeIterator.iterator:Ljava/util/Iterator;
invokeinterface java.util.Iterator.hasNext:()Z
ifeq 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/eclipse/collections/impl/lazy/iterator/TakeIterator<TT;>;
public T next();
descriptor: ()Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.eclipse.collections.impl.lazy.iterator.TakeIterator.hasNext:()Z
ifeq 3
1: aload 0
dup
getfield org.eclipse.collections.impl.lazy.iterator.TakeIterator.currentIndex:I
iconst_1
iadd
putfield org.eclipse.collections.impl.lazy.iterator.TakeIterator.currentIndex:I
2: aload 0
getfield org.eclipse.collections.impl.lazy.iterator.TakeIterator.iterator:Ljava/util/Iterator;
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
areturn
3: StackMap locals:
StackMap stack:
new java.util.NoSuchElementException
dup
invokespecial java.util.NoSuchElementException.<init>:()V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/eclipse/collections/impl/lazy/iterator/TakeIterator<TT;>;
Signature: ()TT;
public void remove();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.UnsupportedOperationException
dup
ldc "Cannot remove from a take iterator"
invokespecial java.lang.UnsupportedOperationException.<init>:(Ljava/lang/String;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/eclipse/collections/impl/lazy/iterator/TakeIterator<TT;>;
}
Signature: <T:Ljava/lang/Object;>Ljava/lang/Object;Ljava/util/Iterator<TT;>;
SourceFile: "TakeIterator.java"