class com.google.common.collect.Iterators$MergingIterator<T> extends com.google.common.collect.UnmodifiableIterator<T>
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: com.google.common.collect.Iterators$MergingIterator
super_class: com.google.common.collect.UnmodifiableIterator
{
final java.util.Queue<com.google.common.collect.PeekingIterator<T>> queue;
descriptor: Ljava/util/Queue;
flags: (0x0010) ACC_FINAL
Signature: Ljava/util/Queue<Lcom/google/common/collect/PeekingIterator<TT;>;>;
public void <init>(java.lang.Iterable<? extends java.util.Iterator<? extends T>>, java.util.Comparator<? super T>);
descriptor: (Ljava/lang/Iterable;Ljava/util/Comparator;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial com.google.common.collect.UnmodifiableIterator.<init>:()V
1: new com.google.common.collect.Iterators$MergingIterator$1
dup
aload 0
aload 2
invokespecial com.google.common.collect.Iterators$MergingIterator$1.<init>:(Lcom/google/common/collect/Iterators$MergingIterator;Ljava/util/Comparator;)V
2: astore 3
start local 3 3: aload 0
new java.util.PriorityQueue
dup
iconst_2
aload 3
invokespecial java.util.PriorityQueue.<init>:(ILjava/util/Comparator;)V
putfield com.google.common.collect.Iterators$MergingIterator.queue:Ljava/util/Queue;
4: aload 1
invokeinterface java.lang.Iterable.iterator:()Ljava/util/Iterator;
astore 5
goto 8
StackMap locals: com.google.common.collect.Iterators$MergingIterator java.lang.Iterable java.util.Comparator java.util.Comparator top java.util.Iterator
StackMap stack:
5: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.util.Iterator
astore 4
start local 4 6: aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifeq 8
7: aload 0
getfield com.google.common.collect.Iterators$MergingIterator.queue:Ljava/util/Queue;
aload 4
invokestatic com.google.common.collect.Iterators.peekingIterator:(Ljava/util/Iterator;)Lcom/google/common/collect/PeekingIterator;
invokeinterface java.util.Queue.add:(Ljava/lang/Object;)Z
pop
end local 4 8: StackMap locals:
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 5
9: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lcom/google/common/collect/Iterators$MergingIterator<TT;>;
0 10 1 iterators Ljava/lang/Iterable<+Ljava/util/Iterator<+TT;>;>;
0 10 2 itemComparator Ljava/util/Comparator<-TT;>;
3 10 3 heapComparator Ljava/util/Comparator<Lcom/google/common/collect/PeekingIterator<TT;>;>;
6 8 4 iterator Ljava/util/Iterator<+TT;>;
Signature: (Ljava/lang/Iterable<+Ljava/util/Iterator<+TT;>;>;Ljava/util/Comparator<-TT;>;)V
MethodParameters:
Name Flags
iterators
itemComparator 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 com.google.common.collect.Iterators$MergingIterator.queue:Ljava/util/Queue;
invokeinterface java.util.Queue.isEmpty:()Z
ifeq 1
iconst_0
goto 2
StackMap locals:
StackMap stack:
1: iconst_1
StackMap locals:
StackMap stack: int
2: ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/google/common/collect/Iterators$MergingIterator<TT;>;
public T next();
descriptor: ()Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=1
start local 0 0: aload 0
getfield com.google.common.collect.Iterators$MergingIterator.queue:Ljava/util/Queue;
invokeinterface java.util.Queue.remove:()Ljava/lang/Object;
checkcast com.google.common.collect.PeekingIterator
astore 1
start local 1 1: aload 1
invokeinterface com.google.common.collect.PeekingIterator.next:()Ljava/lang/Object;
astore 2
start local 2 2: aload 1
invokeinterface com.google.common.collect.PeekingIterator.hasNext:()Z
ifeq 4
3: aload 0
getfield com.google.common.collect.Iterators$MergingIterator.queue:Ljava/util/Queue;
aload 1
invokeinterface java.util.Queue.add:(Ljava/lang/Object;)Z
pop
4: StackMap locals: com.google.common.collect.PeekingIterator java.lang.Object
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/google/common/collect/Iterators$MergingIterator<TT;>;
1 5 1 nextIter Lcom/google/common/collect/PeekingIterator<TT;>;
2 5 2 next TT;
Signature: ()TT;
}
Signature: <T:Ljava/lang/Object;>Lcom/google/common/collect/UnmodifiableIterator<TT;>;
SourceFile: "Iterators.java"
NestHost: com.google.common.collect.Iterators
InnerClasses:
private MergingIterator = com.google.common.collect.Iterators$MergingIterator of com.google.common.collect.Iterators
com.google.common.collect.Iterators$MergingIterator$1