class com.google.common.collect.Iterators$PeekingImpl<E> implements com.google.common.collect.PeekingIterator<E>
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: com.google.common.collect.Iterators$PeekingImpl
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 boolean hasPeeked;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private E peekedElement;
descriptor: Ljava/lang/Object;
flags: (0x0002) ACC_PRIVATE
Signature: TE;
RuntimeVisibleTypeAnnotations:
FIELD
org.checkerframework.checker.nullness.qual.Nullable()
public void <init>(java.util.Iterator<? extends E>);
descriptor: (Ljava/util/Iterator;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
invokestatic com.google.common.base.Preconditions.checkNotNull:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.Iterator
putfield com.google.common.collect.Iterators$PeekingImpl.iterator:Ljava/util/Iterator;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/google/common/collect/Iterators$PeekingImpl<TE;>;
0 3 1 iterator Ljava/util/Iterator<+TE;>;
Signature: (Ljava/util/Iterator<+TE;>;)V
MethodParameters:
Name Flags
iterator
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$PeekingImpl.hasPeeked:Z
ifne 1
aload 0
getfield com.google.common.collect.Iterators$PeekingImpl.iterator:Ljava/util/Iterator;
invokeinterface java.util.Iterator.hasNext:()Z
ifne 1
iconst_0
ireturn
StackMap locals:
StackMap stack:
1: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/google/common/collect/Iterators$PeekingImpl<TE;>;
public E next();
descriptor: ()Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield com.google.common.collect.Iterators$PeekingImpl.hasPeeked:Z
ifne 2
1: aload 0
getfield com.google.common.collect.Iterators$PeekingImpl.iterator:Ljava/util/Iterator;
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
areturn
2: StackMap locals:
StackMap stack:
aload 0
getfield com.google.common.collect.Iterators$PeekingImpl.peekedElement:Ljava/lang/Object;
astore 1
start local 1 3: aload 0
iconst_0
putfield com.google.common.collect.Iterators$PeekingImpl.hasPeeked:Z
4: aload 0
aconst_null
putfield com.google.common.collect.Iterators$PeekingImpl.peekedElement:Ljava/lang/Object;
5: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lcom/google/common/collect/Iterators$PeekingImpl<TE;>;
3 6 1 result TE;
Signature: ()TE;
public void remove();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield com.google.common.collect.Iterators$PeekingImpl.hasPeeked:Z
ifeq 1
iconst_0
goto 2
StackMap locals:
StackMap stack:
1: iconst_1
StackMap locals:
StackMap stack: int
2: ldc "Can't remove after you've peeked at next"
invokestatic com.google.common.base.Preconditions.checkState:(ZLjava/lang/Object;)V
3: aload 0
getfield com.google.common.collect.Iterators$PeekingImpl.iterator:Ljava/util/Iterator;
invokeinterface java.util.Iterator.remove:()V
4: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/google/common/collect/Iterators$PeekingImpl<TE;>;
public E peek();
descriptor: ()Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield com.google.common.collect.Iterators$PeekingImpl.hasPeeked:Z
ifne 3
1: aload 0
aload 0
getfield com.google.common.collect.Iterators$PeekingImpl.iterator:Ljava/util/Iterator;
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
putfield com.google.common.collect.Iterators$PeekingImpl.peekedElement:Ljava/lang/Object;
2: aload 0
iconst_1
putfield com.google.common.collect.Iterators$PeekingImpl.hasPeeked:Z
3: StackMap locals:
StackMap stack:
aload 0
getfield com.google.common.collect.Iterators$PeekingImpl.peekedElement:Ljava/lang/Object;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/google/common/collect/Iterators$PeekingImpl<TE;>;
Signature: ()TE;
}
Signature: <E:Ljava/lang/Object;>Ljava/lang/Object;Lcom/google/common/collect/PeekingIterator<TE;>;
SourceFile: "Iterators.java"
NestHost: com.google.common.collect.Iterators
InnerClasses:
private PeekingImpl = com.google.common.collect.Iterators$PeekingImpl of com.google.common.collect.Iterators