class java.util.Spliterators$IteratorSpliterator<T> implements java.util.Spliterator<T>
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: java.util.Spliterators$IteratorSpliterator
super_class: java.lang.Object
{
static final int BATCH_UNIT;
descriptor: I
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 1024
static final int MAX_BATCH;
descriptor: I
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 33554432
private final java.util.Collection<? extends T> collection;
descriptor: Ljava/util/Collection;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Collection<+TT;>;
private java.util.Iterator<? extends T> it;
descriptor: Ljava/util/Iterator;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/Iterator<+TT;>;
private final int characteristics;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private long est;
descriptor: J
flags: (0x0002) ACC_PRIVATE
private int batch;
descriptor: I
flags: (0x0002) ACC_PRIVATE
public void <init>(java.util.Collection<? extends T>, );
descriptor: (Ljava/util/Collection;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
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield java.util.Spliterators$IteratorSpliterator.collection:Ljava/util/Collection;
2: aload 0
aconst_null
putfield java.util.Spliterators$IteratorSpliterator.it:Ljava/util/Iterator;
3: aload 0
iload 2
sipush 4096
iand
ifne 5
4: iload 2
bipush 64
ior
sipush 16384
ior
goto 6
5: StackMap locals: java.util.Spliterators$IteratorSpliterator java.util.Collection int
StackMap stack: java.util.Spliterators$IteratorSpliterator
iload 2
6: StackMap locals: java.util.Spliterators$IteratorSpliterator java.util.Collection int
StackMap stack: java.util.Spliterators$IteratorSpliterator int
putfield java.util.Spliterators$IteratorSpliterator.characteristics:I
7: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Ljava/util/Spliterators$IteratorSpliterator<TT;>;
0 8 1 collection Ljava/util/Collection<+TT;>;
0 8 2 characteristics I
Signature: (Ljava/util/Collection<+TT;>;I)V
MethodParameters:
Name Flags
collection
characteristics
public void <init>(java.util.Iterator<? extends T>, long, );
descriptor: (Ljava/util/Iterator;JI)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=5, 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 0
aconst_null
putfield java.util.Spliterators$IteratorSpliterator.collection:Ljava/util/Collection;
2: aload 0
aload 1
putfield java.util.Spliterators$IteratorSpliterator.it:Ljava/util/Iterator;
3: aload 0
lload 2
putfield java.util.Spliterators$IteratorSpliterator.est:J
4: aload 0
iload 4
sipush 4096
iand
ifne 6
5: iload 4
bipush 64
ior
sipush 16384
ior
goto 7
6: StackMap locals: java.util.Spliterators$IteratorSpliterator java.util.Iterator long int
StackMap stack: java.util.Spliterators$IteratorSpliterator
iload 4
7: StackMap locals: java.util.Spliterators$IteratorSpliterator java.util.Iterator long int
StackMap stack: java.util.Spliterators$IteratorSpliterator int
putfield java.util.Spliterators$IteratorSpliterator.characteristics:I
8: return
end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Ljava/util/Spliterators$IteratorSpliterator<TT;>;
0 9 1 iterator Ljava/util/Iterator<+TT;>;
0 9 2 size J
0 9 4 characteristics I
Signature: (Ljava/util/Iterator<+TT;>;JI)V
MethodParameters:
Name Flags
iterator
size
characteristics
public void <init>(java.util.Iterator<? extends T>, );
descriptor: (Ljava/util/Iterator;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
invokespecial java.lang.Object.<init>:()V
1: aload 0
aconst_null
putfield java.util.Spliterators$IteratorSpliterator.collection:Ljava/util/Collection;
2: aload 0
aload 1
putfield java.util.Spliterators$IteratorSpliterator.it:Ljava/util/Iterator;
3: aload 0
ldc 9223372036854775807
putfield java.util.Spliterators$IteratorSpliterator.est:J
4: aload 0
iload 2
sipush -16449
iand
putfield java.util.Spliterators$IteratorSpliterator.characteristics:I
5: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljava/util/Spliterators$IteratorSpliterator<TT;>;
0 6 1 iterator Ljava/util/Iterator<+TT;>;
0 6 2 characteristics I
Signature: (Ljava/util/Iterator<+TT;>;I)V
MethodParameters:
Name Flags
iterator
characteristics
public java.util.Spliterator<T> trySplit();
descriptor: ()Ljava/util/Spliterator;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=7, args_size=1
start local 0 0: aload 0
getfield java.util.Spliterators$IteratorSpliterator.it:Ljava/util/Iterator;
dup
astore 1
start local 1 1: ifnonnull 5
2: aload 0
aload 0
getfield java.util.Spliterators$IteratorSpliterator.collection:Ljava/util/Collection;
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
dup_x1
putfield java.util.Spliterators$IteratorSpliterator.it:Ljava/util/Iterator;
astore 1
3: aload 0
aload 0
getfield java.util.Spliterators$IteratorSpliterator.collection:Ljava/util/Collection;
invokeinterface java.util.Collection.size:()I
i2l
dup2_x1
putfield java.util.Spliterators$IteratorSpliterator.est:J
lstore 2
start local 2 4: goto 6
end local 2 5: StackMap locals: java.util.Iterator
StackMap stack:
aload 0
getfield java.util.Spliterators$IteratorSpliterator.est:J
lstore 2
start local 2 6: StackMap locals: long
StackMap stack:
lload 2
lconst_1
lcmp
ifle 19
aload 1
invokeinterface java.util.Iterator.hasNext:()Z
ifeq 19
7: aload 0
getfield java.util.Spliterators$IteratorSpliterator.batch:I
sipush 1024
iadd
istore 4
start local 4 8: iload 4
i2l
lload 2
lcmp
ifle 10
9: lload 2
l2i
istore 4
10: StackMap locals: int
StackMap stack:
iload 4
ldc 33554432
if_icmple 12
11: ldc 33554432
istore 4
12: StackMap locals:
StackMap stack:
iload 4
anewarray java.lang.Object
astore 5
start local 5 13: iconst_0
istore 6
start local 6 14: StackMap locals: java.lang.Object[] int
StackMap stack:
aload 5
iload 6
aload 1
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
aastore
iinc 6 1
iload 6
iload 4
if_icmpge 15
aload 1
invokeinterface java.util.Iterator.hasNext:()Z
ifne 14
15: StackMap locals:
StackMap stack:
aload 0
iload 6
putfield java.util.Spliterators$IteratorSpliterator.batch:I
16: aload 0
getfield java.util.Spliterators$IteratorSpliterator.est:J
ldc 9223372036854775807
lcmp
ifeq 18
17: aload 0
dup
getfield java.util.Spliterators$IteratorSpliterator.est:J
iload 6
i2l
lsub
putfield java.util.Spliterators$IteratorSpliterator.est:J
18: StackMap locals:
StackMap stack:
new java.util.Spliterators$ArraySpliterator
dup
aload 5
iconst_0
iload 6
aload 0
getfield java.util.Spliterators$IteratorSpliterator.characteristics:I
invokespecial java.util.Spliterators$ArraySpliterator.<init>:([Ljava/lang/Object;III)V
areturn
end local 6 end local 5 end local 4 19: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 20 0 this Ljava/util/Spliterators$IteratorSpliterator<TT;>;
1 20 1 i Ljava/util/Iterator<+TT;>;
4 5 2 s J
6 20 2 s J
8 19 4 n I
13 19 5 a [Ljava/lang/Object;
14 19 6 j I
Signature: ()Ljava/util/Spliterator<TT;>;
public void forEachRemaining(java.util.function.Consumer<? super T>);
descriptor: (Ljava/util/function/Consumer;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 1
new java.lang.NullPointerException
dup
invokespecial java.lang.NullPointerException.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
aload 0
getfield java.util.Spliterators$IteratorSpliterator.it:Ljava/util/Iterator;
dup
astore 2
start local 2 2: ifnonnull 5
3: aload 0
aload 0
getfield java.util.Spliterators$IteratorSpliterator.collection:Ljava/util/Collection;
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
dup_x1
putfield java.util.Spliterators$IteratorSpliterator.it:Ljava/util/Iterator;
astore 2
4: aload 0
aload 0
getfield java.util.Spliterators$IteratorSpliterator.collection:Ljava/util/Collection;
invokeinterface java.util.Collection.size:()I
i2l
putfield java.util.Spliterators$IteratorSpliterator.est:J
5: StackMap locals: java.util.Iterator
StackMap stack:
aload 2
aload 1
invokeinterface java.util.Iterator.forEachRemaining:(Ljava/util/function/Consumer;)V
6: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljava/util/Spliterators$IteratorSpliterator<TT;>;
0 7 1 action Ljava/util/function/Consumer<-TT;>;
2 7 2 i Ljava/util/Iterator<+TT;>;
Signature: (Ljava/util/function/Consumer<-TT;>;)V
MethodParameters:
Name Flags
action
public boolean tryAdvance(java.util.function.Consumer<? super T>);
descriptor: (Ljava/util/function/Consumer;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 1
new java.lang.NullPointerException
dup
invokespecial java.lang.NullPointerException.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
aload 0
getfield java.util.Spliterators$IteratorSpliterator.it:Ljava/util/Iterator;
ifnonnull 4
2: aload 0
aload 0
getfield java.util.Spliterators$IteratorSpliterator.collection:Ljava/util/Collection;
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
putfield java.util.Spliterators$IteratorSpliterator.it:Ljava/util/Iterator;
3: aload 0
aload 0
getfield java.util.Spliterators$IteratorSpliterator.collection:Ljava/util/Collection;
invokeinterface java.util.Collection.size:()I
i2l
putfield java.util.Spliterators$IteratorSpliterator.est:J
4: StackMap locals:
StackMap stack:
aload 0
getfield java.util.Spliterators$IteratorSpliterator.it:Ljava/util/Iterator;
invokeinterface java.util.Iterator.hasNext:()Z
ifeq 7
5: aload 1
aload 0
getfield java.util.Spliterators$IteratorSpliterator.it:Ljava/util/Iterator;
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
invokeinterface java.util.function.Consumer.accept:(Ljava/lang/Object;)V
6: iconst_1
ireturn
7: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Ljava/util/Spliterators$IteratorSpliterator<TT;>;
0 8 1 action Ljava/util/function/Consumer<-TT;>;
Signature: (Ljava/util/function/Consumer<-TT;>;)Z
MethodParameters:
Name Flags
action
public long estimateSize();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: aload 0
getfield java.util.Spliterators$IteratorSpliterator.it:Ljava/util/Iterator;
ifnonnull 3
1: aload 0
aload 0
getfield java.util.Spliterators$IteratorSpliterator.collection:Ljava/util/Collection;
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
putfield java.util.Spliterators$IteratorSpliterator.it:Ljava/util/Iterator;
2: aload 0
aload 0
getfield java.util.Spliterators$IteratorSpliterator.collection:Ljava/util/Collection;
invokeinterface java.util.Collection.size:()I
i2l
dup2_x1
putfield java.util.Spliterators$IteratorSpliterator.est:J
lreturn
3: StackMap locals:
StackMap stack:
aload 0
getfield java.util.Spliterators$IteratorSpliterator.est:J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljava/util/Spliterators$IteratorSpliterator<TT;>;
public int characteristics();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield java.util.Spliterators$IteratorSpliterator.characteristics:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/util/Spliterators$IteratorSpliterator<TT;>;
public java.util.Comparator<? super T> getComparator();
descriptor: ()Ljava/util/Comparator;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
iconst_4
invokevirtual java.util.Spliterators$IteratorSpliterator.hasCharacteristics:(I)Z
ifeq 2
1: aconst_null
areturn
2: StackMap locals:
StackMap stack:
new java.lang.IllegalStateException
dup
invokespecial java.lang.IllegalStateException.<init>:()V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljava/util/Spliterators$IteratorSpliterator<TT;>;
Signature: ()Ljava/util/Comparator<-TT;>;
}
Signature: <T:Ljava/lang/Object;>Ljava/lang/Object;Ljava/util/Spliterator<TT;>;
SourceFile: "Spliterators.java"
NestHost: java.util.Spliterators
InnerClasses:
final ArraySpliterator = java.util.Spliterators$ArraySpliterator of java.util.Spliterators
IteratorSpliterator = java.util.Spliterators$IteratorSpliterator of java.util.Spliterators