public final class org.eclipse.collections.impl.lazy.iterator.ChunkIterator<T> implements java.util.Iterator<org.eclipse.collections.api.RichIterable<T>>
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: org.eclipse.collections.impl.lazy.iterator.ChunkIterator
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 size;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final org.eclipse.collections.api.block.function.Function0<org.eclipse.collections.api.collection.MutableCollection<T>> speciesNewStrategy;
descriptor: Lorg/eclipse/collections/api/block/function/Function0;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Lorg/eclipse/collections/api/block/function/Function0<Lorg/eclipse/collections/api/collection/MutableCollection<TT;>;>;
public void <init>(java.lang.Iterable<T>, );
descriptor: (Ljava/lang/Iterable;I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: iload 2
ifgt 3
2: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "Size for groups must be positive but was: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 2
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals: org.eclipse.collections.impl.lazy.iterator.ChunkIterator java.lang.Iterable int
StackMap stack:
aload 0
iload 2
putfield org.eclipse.collections.impl.lazy.iterator.ChunkIterator.size:I
4: aload 0
aload 1
invokeinterface java.lang.Iterable.iterator:()Ljava/util/Iterator;
putfield org.eclipse.collections.impl.lazy.iterator.ChunkIterator.iterator:Ljava/util/Iterator;
5: aload 0
aload 1
instanceof org.eclipse.collections.api.collection.MutableCollection
ifeq 7
6: aload 1
checkcast org.eclipse.collections.api.collection.MutableCollection
dup
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
pop
invokedynamic value(Lorg/eclipse/collections/api/collection/MutableCollection;)Lorg/eclipse/collections/api/block/function/Function0;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.altMetafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite;
Method arguments:
()Ljava/lang/Object;
org/eclipse/collections/api/collection/MutableCollection.newEmpty()Lorg/eclipse/collections/api/collection/MutableCollection; (9 itf)
()Lorg/eclipse/collections/api/collection/MutableCollection;
1
goto 8
7: StackMap locals:
StackMap stack: org.eclipse.collections.impl.lazy.iterator.ChunkIterator
getstatic org.eclipse.collections.api.factory.Lists.mutable:Lorg/eclipse/collections/api/factory/list/MutableListFactory;
dup
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
pop
invokedynamic value(Lorg/eclipse/collections/api/factory/list/MutableListFactory;)Lorg/eclipse/collections/api/block/function/Function0;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.altMetafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite;
Method arguments:
()Ljava/lang/Object;
org/eclipse/collections/api/factory/list/MutableListFactory.empty()Lorg/eclipse/collections/api/list/MutableList; (9 itf)
()Lorg/eclipse/collections/api/collection/MutableCollection;
1
8: StackMap locals: org.eclipse.collections.impl.lazy.iterator.ChunkIterator java.lang.Iterable int
StackMap stack: org.eclipse.collections.impl.lazy.iterator.ChunkIterator org.eclipse.collections.api.block.function.Function0
putfield org.eclipse.collections.impl.lazy.iterator.ChunkIterator.speciesNewStrategy:Lorg/eclipse/collections/api/block/function/Function0;
9: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lorg/eclipse/collections/impl/lazy/iterator/ChunkIterator<TT;>;
0 10 1 iterable Ljava/lang/Iterable<TT;>;
0 10 2 size I
Signature: (Ljava/lang/Iterable<TT;>;I)V
MethodParameters:
Name Flags
iterable
size
public void remove();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: new java.lang.UnsupportedOperationException
dup
new java.lang.StringBuilder
dup
ldc "Cannot call remove() on "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getSimpleName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
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/ChunkIterator<TT;>;
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.eclipse.collections.impl.lazy.iterator.ChunkIterator.iterator:Ljava/util/Iterator;
invokeinterface java.util.Iterator.hasNext:()Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/eclipse/collections/impl/lazy/iterator/ChunkIterator<TT;>;
public org.eclipse.collections.api.RichIterable<T> next();
descriptor: ()Lorg/eclipse/collections/api/RichIterable;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=1
start local 0 0: aload 0
getfield org.eclipse.collections.impl.lazy.iterator.ChunkIterator.iterator:Ljava/util/Iterator;
invokeinterface java.util.Iterator.hasNext:()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.eclipse.collections.impl.lazy.iterator.ChunkIterator.size:I
istore 1
start local 1 3: aload 0
getfield org.eclipse.collections.impl.lazy.iterator.ChunkIterator.speciesNewStrategy:Lorg/eclipse/collections/api/block/function/Function0;
invokeinterface org.eclipse.collections.api.block.function.Function0.value:()Ljava/lang/Object;
checkcast org.eclipse.collections.api.collection.MutableCollection
astore 2
start local 2 4: goto 7
5: StackMap locals: int org.eclipse.collections.api.collection.MutableCollection
StackMap stack:
aload 2
aload 0
getfield org.eclipse.collections.impl.lazy.iterator.ChunkIterator.iterator:Ljava/util/Iterator;
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
invokeinterface org.eclipse.collections.api.collection.MutableCollection.add:(Ljava/lang/Object;)Z
pop
6: iinc 1 -1
7: StackMap locals:
StackMap stack:
iload 1
ifle 8
aload 0
getfield org.eclipse.collections.impl.lazy.iterator.ChunkIterator.iterator:Ljava/util/Iterator;
invokeinterface java.util.Iterator.hasNext:()Z
ifne 5
8: StackMap locals:
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/eclipse/collections/impl/lazy/iterator/ChunkIterator<TT;>;
3 9 1 i I
4 9 2 result Lorg/eclipse/collections/api/collection/MutableCollection<TT;>;
Signature: ()Lorg/eclipse/collections/api/RichIterable<TT;>;
public java.lang.Object next();
descriptor: ()Ljava/lang/Object;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
0: aload 0
invokevirtual org.eclipse.collections.impl.lazy.iterator.ChunkIterator.next:()Lorg/eclipse/collections/api/RichIterable;
areturn
LocalVariableTable:
Start End Slot Name Signature
private static java.lang.Object $deserializeLambda$(java.lang.invoke.SerializedLambda);
descriptor: (Ljava/lang/invoke/SerializedLambda;)Ljava/lang/Object;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=5, locals=3, args_size=1
0: aload 0
invokevirtual java.lang.invoke.SerializedLambda.getImplMethodName:()Ljava/lang/String;
astore 1
iconst_m1
istore 2
aload 1
invokevirtual java.lang.String.hashCode:()I
lookupswitch { // 2
96634189: 2
1353117581: 1
default: 3
}
StackMap locals: java.lang.String int
StackMap stack:
1: aload 1
ldc "newEmpty"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 3
iconst_0
istore 2
goto 3
StackMap locals:
StackMap stack:
2: aload 1
ldc "empty"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 3
iconst_1
istore 2
StackMap locals:
StackMap stack:
3: iload 2
lookupswitch { // 2
0: 4
1: 5
default: 6
}
StackMap locals:
StackMap stack:
4: aload 0
invokevirtual java.lang.invoke.SerializedLambda.getImplMethodKind:()I
bipush 9
if_icmpne 6
aload 0
invokevirtual java.lang.invoke.SerializedLambda.getFunctionalInterfaceClass:()Ljava/lang/String;
ldc "org/eclipse/collections/api/block/function/Function0"
invokevirtual java.lang.Object.equals:(Ljava/lang/Object;)Z
ifeq 6
aload 0
invokevirtual java.lang.invoke.SerializedLambda.getFunctionalInterfaceMethodName:()Ljava/lang/String;
ldc "value"
invokevirtual java.lang.Object.equals:(Ljava/lang/Object;)Z
ifeq 6
aload 0
invokevirtual java.lang.invoke.SerializedLambda.getFunctionalInterfaceMethodSignature:()Ljava/lang/String;
ldc "()Ljava/lang/Object;"
invokevirtual java.lang.Object.equals:(Ljava/lang/Object;)Z
ifeq 6
aload 0
invokevirtual java.lang.invoke.SerializedLambda.getImplClass:()Ljava/lang/String;
ldc "org/eclipse/collections/api/collection/MutableCollection"
invokevirtual java.lang.Object.equals:(Ljava/lang/Object;)Z
ifeq 6
aload 0
invokevirtual java.lang.invoke.SerializedLambda.getImplMethodSignature:()Ljava/lang/String;
ldc "()Lorg/eclipse/collections/api/collection/MutableCollection;"
invokevirtual java.lang.Object.equals:(Ljava/lang/Object;)Z
ifeq 6
aload 0
iconst_0
invokevirtual java.lang.invoke.SerializedLambda.getCapturedArg:(I)Ljava/lang/Object;
checkcast org.eclipse.collections.api.collection.MutableCollection
invokedynamic value(Lorg/eclipse/collections/api/collection/MutableCollection;)Lorg/eclipse/collections/api/block/function/Function0;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.altMetafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite;
Method arguments:
()Ljava/lang/Object;
org/eclipse/collections/api/collection/MutableCollection.newEmpty()Lorg/eclipse/collections/api/collection/MutableCollection; (9 itf)
()Lorg/eclipse/collections/api/collection/MutableCollection;
1
areturn
StackMap locals:
StackMap stack:
5: aload 0
invokevirtual java.lang.invoke.SerializedLambda.getImplMethodKind:()I
bipush 9
if_icmpne 6
aload 0
invokevirtual java.lang.invoke.SerializedLambda.getFunctionalInterfaceClass:()Ljava/lang/String;
ldc "org/eclipse/collections/api/block/function/Function0"
invokevirtual java.lang.Object.equals:(Ljava/lang/Object;)Z
ifeq 6
aload 0
invokevirtual java.lang.invoke.SerializedLambda.getFunctionalInterfaceMethodName:()Ljava/lang/String;
ldc "value"
invokevirtual java.lang.Object.equals:(Ljava/lang/Object;)Z
ifeq 6
aload 0
invokevirtual java.lang.invoke.SerializedLambda.getFunctionalInterfaceMethodSignature:()Ljava/lang/String;
ldc "()Ljava/lang/Object;"
invokevirtual java.lang.Object.equals:(Ljava/lang/Object;)Z
ifeq 6
aload 0
invokevirtual java.lang.invoke.SerializedLambda.getImplClass:()Ljava/lang/String;
ldc "org/eclipse/collections/api/factory/list/MutableListFactory"
invokevirtual java.lang.Object.equals:(Ljava/lang/Object;)Z
ifeq 6
aload 0
invokevirtual java.lang.invoke.SerializedLambda.getImplMethodSignature:()Ljava/lang/String;
ldc "()Lorg/eclipse/collections/api/list/MutableList;"
invokevirtual java.lang.Object.equals:(Ljava/lang/Object;)Z
ifeq 6
aload 0
iconst_0
invokevirtual java.lang.invoke.SerializedLambda.getCapturedArg:(I)Ljava/lang/Object;
checkcast org.eclipse.collections.api.factory.list.MutableListFactory
invokedynamic value(Lorg/eclipse/collections/api/factory/list/MutableListFactory;)Lorg/eclipse/collections/api/block/function/Function0;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.altMetafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite;
Method arguments:
()Ljava/lang/Object;
org/eclipse/collections/api/factory/list/MutableListFactory.empty()Lorg/eclipse/collections/api/list/MutableList; (9 itf)
()Lorg/eclipse/collections/api/collection/MutableCollection;
1
areturn
StackMap locals:
StackMap stack:
6: new java.lang.IllegalArgumentException
dup
ldc "Invalid lambda deserialization"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
LocalVariableTable:
Start End Slot Name Signature
}
Signature: <T:Ljava/lang/Object;>Ljava/lang/Object;Ljava/util/Iterator<Lorg/eclipse/collections/api/RichIterable<TT;>;>;
SourceFile: "ChunkIterator.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles