public class org.apache.commons.collections4.iterators.BoundedIterator<E> implements java.util.Iterator<E>
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.commons.collections4.iterators.BoundedIterator
super_class: java.lang.Object
{
private final java.util.Iterator<? extends E> iterator;
descriptor: Ljava/util/Iterator;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Iterator<+TE;>;
private final long offset;
descriptor: J
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final long max;
descriptor: J
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private long pos;
descriptor: J
flags: (0x0002) ACC_PRIVATE
public void <init>(java.util.Iterator<? extends E>, long, );
descriptor: (Ljava/util/Iterator;JJ)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 4 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 1
ifnonnull 3
2: new java.lang.NullPointerException
dup
ldc "Iterator must not be null"
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals: org.apache.commons.collections4.iterators.BoundedIterator java.util.Iterator long long
StackMap stack:
lload 2
lconst_0
lcmp
ifge 5
4: new java.lang.IllegalArgumentException
dup
ldc "Offset parameter must not be negative."
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
5: StackMap locals:
StackMap stack:
lload 4
lconst_0
lcmp
ifge 7
6: new java.lang.IllegalArgumentException
dup
ldc "Max parameter must not be negative."
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
7: StackMap locals:
StackMap stack:
aload 0
aload 1
putfield org.apache.commons.collections4.iterators.BoundedIterator.iterator:Ljava/util/Iterator;
8: aload 0
lload 2
putfield org.apache.commons.collections4.iterators.BoundedIterator.offset:J
9: aload 0
lload 4
putfield org.apache.commons.collections4.iterators.BoundedIterator.max:J
10: aload 0
lconst_0
putfield org.apache.commons.collections4.iterators.BoundedIterator.pos:J
11: aload 0
invokevirtual org.apache.commons.collections4.iterators.BoundedIterator.init:()V
12: return
end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lorg/apache/commons/collections4/iterators/BoundedIterator<TE;>;
0 13 1 iterator Ljava/util/Iterator<+TE;>;
0 13 2 offset J
0 13 4 max J
Signature: (Ljava/util/Iterator<+TE;>;JJ)V
MethodParameters:
Name Flags
iterator final
offset final
max final
private void init();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=1, args_size=1
start local 0 0: goto 3
1: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.commons.collections4.iterators.BoundedIterator.iterator:Ljava/util/Iterator;
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
pop
2: aload 0
dup
getfield org.apache.commons.collections4.iterators.BoundedIterator.pos:J
lconst_1
ladd
putfield org.apache.commons.collections4.iterators.BoundedIterator.pos:J
3: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.commons.collections4.iterators.BoundedIterator.pos:J
aload 0
getfield org.apache.commons.collections4.iterators.BoundedIterator.offset:J
lcmp
ifge 4
aload 0
getfield org.apache.commons.collections4.iterators.BoundedIterator.iterator:Ljava/util/Iterator;
invokeinterface java.util.Iterator.hasNext:()Z
ifne 1
4: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/apache/commons/collections4/iterators/BoundedIterator<TE;>;
public boolean hasNext();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.apache.commons.collections4.iterators.BoundedIterator.checkBounds:()Z
ifne 2
1: iconst_0
ireturn
2: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.commons.collections4.iterators.BoundedIterator.iterator:Ljava/util/Iterator;
invokeinterface java.util.Iterator.hasNext:()Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/commons/collections4/iterators/BoundedIterator<TE;>;
private boolean checkBounds();
descriptor: ()Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.commons.collections4.iterators.BoundedIterator.pos:J
aload 0
getfield org.apache.commons.collections4.iterators.BoundedIterator.offset:J
lsub
lconst_1
ladd
aload 0
getfield org.apache.commons.collections4.iterators.BoundedIterator.max:J
lcmp
ifle 2
1: iconst_0
ireturn
2: StackMap locals:
StackMap stack:
iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/commons/collections4/iterators/BoundedIterator<TE;>;
public E next();
descriptor: ()Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual org.apache.commons.collections4.iterators.BoundedIterator.checkBounds:()Z
ifne 2
1: new java.util.NoSuchElementException
dup
invokespecial java.util.NoSuchElementException.<init>:()V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.commons.collections4.iterators.BoundedIterator.iterator:Ljava/util/Iterator;
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
astore 1
start local 1 3: aload 0
dup
getfield org.apache.commons.collections4.iterators.BoundedIterator.pos:J
lconst_1
ladd
putfield org.apache.commons.collections4.iterators.BoundedIterator.pos:J
4: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/apache/commons/collections4/iterators/BoundedIterator<TE;>;
3 5 1 next TE;
Signature: ()TE;
public void remove();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.commons.collections4.iterators.BoundedIterator.pos:J
aload 0
getfield org.apache.commons.collections4.iterators.BoundedIterator.offset:J
lcmp
ifgt 2
1: new java.lang.IllegalStateException
dup
ldc "remove() can not be called before calling next()"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.commons.collections4.iterators.BoundedIterator.iterator:Ljava/util/Iterator;
invokeinterface java.util.Iterator.remove:()V
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/commons/collections4/iterators/BoundedIterator<TE;>;
}
Signature: <E:Ljava/lang/Object;>Ljava/lang/Object;Ljava/util/Iterator<TE;>;
SourceFile: "BoundedIterator.java"