final class com.google.common.collect.MoreCollectors$ToOptionalState
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: com.google.common.collect.MoreCollectors$ToOptionalState
super_class: java.lang.Object
{
static final int ;
descriptor: I
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 4
java.lang.Object element;
descriptor: Ljava/lang/Object;
flags: (0x0000)
RuntimeVisibleTypeAnnotations:
FIELD
org.checkerframework.checker.nullness.qual.Nullable()
java.util.List<java.lang.Object> ;
descriptor: Ljava/util/List;
flags: (0x0000)
Signature: Ljava/util/List<Ljava/lang/Object;>;
RuntimeVisibleTypeAnnotations:
FIELD
org.checkerframework.checker.nullness.qual.Nullable()
void <init>();
descriptor: ()V
flags: (0x0000)
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aconst_null
putfield com.google.common.collect.MoreCollectors$ToOptionalState.element:Ljava/lang/Object;
2: aload 0
aconst_null
putfield com.google.common.collect.MoreCollectors$ToOptionalState.extras:Ljava/util/List;
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/google/common/collect/MoreCollectors$ToOptionalState;
java.lang.IllegalArgumentException multiples(boolean);
descriptor: (Z)Ljava/lang/IllegalArgumentException;
flags: (0x0000)
Code:
stack=3, locals=5, args_size=2
start local 0 start local 1 0: new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
ldc "expected one element but was: <"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield com.google.common.collect.MoreCollectors$ToOptionalState.element:Ljava/lang/Object;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
1: astore 2
start local 2 2: aload 0
getfield com.google.common.collect.MoreCollectors$ToOptionalState.extras:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 4
goto 5
StackMap locals: com.google.common.collect.MoreCollectors$ToOptionalState int java.lang.StringBuilder top java.util.Iterator
StackMap stack:
3: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
astore 3
start local 3 4: aload 2
ldc ", "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
pop
end local 3 5: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
6: iload 1
ifeq 8
7: aload 2
ldc ", ..."
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
8: StackMap locals: com.google.common.collect.MoreCollectors$ToOptionalState int java.lang.StringBuilder
StackMap stack:
aload 2
bipush 62
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
9: new java.lang.IllegalArgumentException
dup
aload 2
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lcom/google/common/collect/MoreCollectors$ToOptionalState;
0 10 1 overflow Z
2 10 2 sb Ljava/lang/StringBuilder;
4 5 3 o Ljava/lang/Object;
MethodParameters:
Name Flags
overflow
void add(java.lang.Object);
descriptor: (Ljava/lang/Object;)V
flags: (0x0000)
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokestatic com.google.common.base.Preconditions.checkNotNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: aload 0
getfield com.google.common.collect.MoreCollectors$ToOptionalState.element:Ljava/lang/Object;
ifnonnull 4
2: aload 0
aload 1
putfield com.google.common.collect.MoreCollectors$ToOptionalState.element:Ljava/lang/Object;
3: goto 12
StackMap locals:
StackMap stack:
4: aload 0
getfield com.google.common.collect.MoreCollectors$ToOptionalState.extras:Ljava/util/List;
ifnonnull 8
5: aload 0
new java.util.ArrayList
dup
iconst_4
invokespecial java.util.ArrayList.<init>:(I)V
putfield com.google.common.collect.MoreCollectors$ToOptionalState.extras:Ljava/util/List;
6: aload 0
getfield com.google.common.collect.MoreCollectors$ToOptionalState.extras:Ljava/util/List;
aload 1
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
7: goto 12
StackMap locals:
StackMap stack:
8: aload 0
getfield com.google.common.collect.MoreCollectors$ToOptionalState.extras:Ljava/util/List;
invokeinterface java.util.List.size:()I
iconst_4
if_icmpge 11
9: aload 0
getfield com.google.common.collect.MoreCollectors$ToOptionalState.extras:Ljava/util/List;
aload 1
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
10: goto 12
11: StackMap locals:
StackMap stack:
aload 0
iconst_1
invokevirtual com.google.common.collect.MoreCollectors$ToOptionalState.multiples:(Z)Ljava/lang/IllegalArgumentException;
athrow
12: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lcom/google/common/collect/MoreCollectors$ToOptionalState;
0 13 1 o Ljava/lang/Object;
MethodParameters:
Name Flags
o
com.google.common.collect.MoreCollectors$ToOptionalState combine(com.google.common.collect.MoreCollectors$ToOptionalState);
descriptor: (Lcom/google/common/collect/MoreCollectors$ToOptionalState;)Lcom/google/common/collect/MoreCollectors$ToOptionalState;
flags: (0x0000)
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield com.google.common.collect.MoreCollectors$ToOptionalState.element:Ljava/lang/Object;
ifnonnull 2
1: aload 1
areturn
2: StackMap locals:
StackMap stack:
aload 1
getfield com.google.common.collect.MoreCollectors$ToOptionalState.element:Ljava/lang/Object;
ifnonnull 4
3: aload 0
areturn
4: StackMap locals:
StackMap stack:
aload 0
getfield com.google.common.collect.MoreCollectors$ToOptionalState.extras:Ljava/util/List;
ifnonnull 6
5: aload 0
new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
putfield com.google.common.collect.MoreCollectors$ToOptionalState.extras:Ljava/util/List;
6: StackMap locals:
StackMap stack:
aload 0
getfield com.google.common.collect.MoreCollectors$ToOptionalState.extras:Ljava/util/List;
aload 1
getfield com.google.common.collect.MoreCollectors$ToOptionalState.element:Ljava/lang/Object;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
7: aload 1
getfield com.google.common.collect.MoreCollectors$ToOptionalState.extras:Ljava/util/List;
ifnull 9
8: aload 0
getfield com.google.common.collect.MoreCollectors$ToOptionalState.extras:Ljava/util/List;
aload 1
getfield com.google.common.collect.MoreCollectors$ToOptionalState.extras:Ljava/util/List;
invokeinterface java.util.List.addAll:(Ljava/util/Collection;)Z
pop
9: StackMap locals:
StackMap stack:
aload 0
getfield com.google.common.collect.MoreCollectors$ToOptionalState.extras:Ljava/util/List;
invokeinterface java.util.List.size:()I
iconst_4
if_icmple 12
10: aload 0
getfield com.google.common.collect.MoreCollectors$ToOptionalState.extras:Ljava/util/List;
iconst_4
aload 0
getfield com.google.common.collect.MoreCollectors$ToOptionalState.extras:Ljava/util/List;
invokeinterface java.util.List.size:()I
invokeinterface java.util.List.subList:(II)Ljava/util/List;
invokeinterface java.util.List.clear:()V
11: aload 0
iconst_1
invokevirtual com.google.common.collect.MoreCollectors$ToOptionalState.multiples:(Z)Ljava/lang/IllegalArgumentException;
athrow
12: StackMap locals:
StackMap stack:
aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lcom/google/common/collect/MoreCollectors$ToOptionalState;
0 13 1 other Lcom/google/common/collect/MoreCollectors$ToOptionalState;
MethodParameters:
Name Flags
other
java.util.Optional<java.lang.Object> getOptional();
descriptor: ()Ljava/util/Optional;
flags: (0x0000)
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield com.google.common.collect.MoreCollectors$ToOptionalState.extras:Ljava/util/List;
ifnonnull 2
1: aload 0
getfield com.google.common.collect.MoreCollectors$ToOptionalState.element:Ljava/lang/Object;
invokestatic java.util.Optional.ofNullable:(Ljava/lang/Object;)Ljava/util/Optional;
areturn
2: StackMap locals:
StackMap stack:
aload 0
iconst_0
invokevirtual com.google.common.collect.MoreCollectors$ToOptionalState.multiples:(Z)Ljava/lang/IllegalArgumentException;
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/google/common/collect/MoreCollectors$ToOptionalState;
Signature: ()Ljava/util/Optional<Ljava/lang/Object;>;
java.lang.Object getElement();
descriptor: ()Ljava/lang/Object;
flags: (0x0000)
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield com.google.common.collect.MoreCollectors$ToOptionalState.element:Ljava/lang/Object;
ifnonnull 2
1: new java.util.NoSuchElementException
dup
invokespecial java.util.NoSuchElementException.<init>:()V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield com.google.common.collect.MoreCollectors$ToOptionalState.extras:Ljava/util/List;
ifnonnull 4
3: aload 0
getfield com.google.common.collect.MoreCollectors$ToOptionalState.element:Ljava/lang/Object;
areturn
4: StackMap locals:
StackMap stack:
aload 0
iconst_0
invokevirtual com.google.common.collect.MoreCollectors$ToOptionalState.multiples:(Z)Ljava/lang/IllegalArgumentException;
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/google/common/collect/MoreCollectors$ToOptionalState;
}
SourceFile: "MoreCollectors.java"
NestHost: com.google.common.collect.MoreCollectors
InnerClasses:
private final ToOptionalState = com.google.common.collect.MoreCollectors$ToOptionalState of com.google.common.collect.MoreCollectors