public final class com.google.common.collect.MoreCollectors
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: com.google.common.collect.MoreCollectors
super_class: java.lang.Object
{
private static final java.util.stream.Collector<java.lang.Object, ?, java.util.Optional<java.lang.Object>> TO_OPTIONAL;
descriptor: Ljava/util/stream/Collector;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Ljava/util/stream/Collector<Ljava/lang/Object;*Ljava/util/Optional<Ljava/lang/Object;>;>;
private static final java.lang.Object NULL_PLACEHOLDER;
descriptor: Ljava/lang/Object;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.util.stream.Collector<java.lang.Object, ?, java.lang.Object> ONLY_ELEMENT;
descriptor: Ljava/util/stream/Collector;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Ljava/util/stream/Collector<Ljava/lang/Object;*Ljava/lang/Object;>;
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=8, locals=0, args_size=0
0: invokedynamic get()Ljava/util/function/Supplier;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
()Ljava/lang/Object;
com/google/common/collect/MoreCollectors$ToOptionalState.<init>()V (8)
()Lcom/google/common/collect/MoreCollectors$ToOptionalState;
1: invokedynamic accept()Ljava/util/function/BiConsumer;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;Ljava/lang/Object;)V
com/google/common/collect/MoreCollectors$ToOptionalState.add(Ljava/lang/Object;)V (5)
(Lcom/google/common/collect/MoreCollectors$ToOptionalState;Ljava/lang/Object;)V
2: invokedynamic apply()Ljava/util/function/BinaryOperator;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
com/google/common/collect/MoreCollectors$ToOptionalState.combine(Lcom/google/common/collect/MoreCollectors$ToOptionalState;)Lcom/google/common/collect/MoreCollectors$ToOptionalState; (5)
(Lcom/google/common/collect/MoreCollectors$ToOptionalState;Lcom/google/common/collect/MoreCollectors$ToOptionalState;)Lcom/google/common/collect/MoreCollectors$ToOptionalState;
3: invokedynamic apply()Ljava/util/function/Function;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)Ljava/lang/Object;
com/google/common/collect/MoreCollectors$ToOptionalState.getOptional()Ljava/util/Optional; (5)
(Lcom/google/common/collect/MoreCollectors$ToOptionalState;)Ljava/util/Optional;
iconst_1
anewarray java.util.stream.Collector$Characteristics
dup
iconst_0
4: getstatic java.util.stream.Collector$Characteristics.UNORDERED:Ljava/util/stream/Collector$Characteristics;
aastore
5: invokestatic java.util.stream.Collector.of:(Ljava/util/function/Supplier;Ljava/util/function/BiConsumer;Ljava/util/function/BinaryOperator;Ljava/util/function/Function;[Ljava/util/stream/Collector$Characteristics;)Ljava/util/stream/Collector;
6: putstatic com.google.common.collect.MoreCollectors.TO_OPTIONAL:Ljava/util/stream/Collector;
7: new java.lang.Object
dup
invokespecial java.lang.Object.<init>:()V
putstatic com.google.common.collect.MoreCollectors.NULL_PLACEHOLDER:Ljava/lang/Object;
8: invokedynamic get()Ljava/util/function/Supplier;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
()Ljava/lang/Object;
com/google/common/collect/MoreCollectors$ToOptionalState.<init>()V (8)
()Lcom/google/common/collect/MoreCollectors$ToOptionalState;
9: invokedynamic accept()Ljava/util/function/BiConsumer;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;Ljava/lang/Object;)V
com/google/common/collect/MoreCollectors.lambda$5(Lcom/google/common/collect/MoreCollectors$ToOptionalState;Ljava/lang/Object;)V (6)
(Lcom/google/common/collect/MoreCollectors$ToOptionalState;Ljava/lang/Object;)V
10: invokedynamic apply()Ljava/util/function/BinaryOperator;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
com/google/common/collect/MoreCollectors$ToOptionalState.combine(Lcom/google/common/collect/MoreCollectors$ToOptionalState;)Lcom/google/common/collect/MoreCollectors$ToOptionalState; (5)
(Lcom/google/common/collect/MoreCollectors$ToOptionalState;Lcom/google/common/collect/MoreCollectors$ToOptionalState;)Lcom/google/common/collect/MoreCollectors$ToOptionalState;
11: invokedynamic apply()Ljava/util/function/Function;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)Ljava/lang/Object;
com/google/common/collect/MoreCollectors.lambda$7(Lcom/google/common/collect/MoreCollectors$ToOptionalState;)Ljava/lang/Object; (6)
(Lcom/google/common/collect/MoreCollectors$ToOptionalState;)Ljava/lang/Object;
iconst_1
anewarray java.util.stream.Collector$Characteristics
dup
iconst_0
12: getstatic java.util.stream.Collector$Characteristics.UNORDERED:Ljava/util/stream/Collector$Characteristics;
aastore
13: invokestatic java.util.stream.Collector.of:(Ljava/util/function/Supplier;Ljava/util/function/BiConsumer;Ljava/util/function/BinaryOperator;Ljava/util/function/Function;[Ljava/util/stream/Collector$Characteristics;)Ljava/util/stream/Collector;
14: putstatic com.google.common.collect.MoreCollectors.ONLY_ELEMENT:Ljava/util/stream/Collector;
15: return
LocalVariableTable:
Start End Slot Name Signature
public static <T> java.util.stream.Collector<T, ?, java.util.Optional<T>> toOptional();
descriptor: ()Ljava/util/stream/Collector;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic com.google.common.collect.MoreCollectors.TO_OPTIONAL:Ljava/util/stream/Collector;
areturn
LocalVariableTable:
Start End Slot Name Signature
Signature: <T:Ljava/lang/Object;>()Ljava/util/stream/Collector<TT;*Ljava/util/Optional<TT;>;>;
public static <T> java.util.stream.Collector<T, ?, T> onlyElement();
descriptor: ()Ljava/util/stream/Collector;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic com.google.common.collect.MoreCollectors.ONLY_ELEMENT:Ljava/util/stream/Collector;
areturn
LocalVariableTable:
Start End Slot Name Signature
Signature: <T:Ljava/lang/Object;>()Ljava/util/stream/Collector<TT;*TT;>;
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/google/common/collect/MoreCollectors;
private static void lambda$5(com.google.common.collect.MoreCollectors$ToOptionalState, java.lang.Object);
descriptor: (Lcom/google/common/collect/MoreCollectors$ToOptionalState;Ljava/lang/Object;)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
ifnonnull 1
getstatic com.google.common.collect.MoreCollectors.NULL_PLACEHOLDER:Ljava/lang/Object;
goto 2
StackMap locals:
StackMap stack: com.google.common.collect.MoreCollectors$ToOptionalState
1: aload 1
StackMap locals: com.google.common.collect.MoreCollectors$ToOptionalState java.lang.Object
StackMap stack: com.google.common.collect.MoreCollectors$ToOptionalState java.lang.Object
2: invokevirtual com.google.common.collect.MoreCollectors$ToOptionalState.add:(Ljava/lang/Object;)V
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 state Lcom/google/common/collect/MoreCollectors$ToOptionalState;
0 3 1 o Ljava/lang/Object;
private static java.lang.Object lambda$7(com.google.common.collect.MoreCollectors$ToOptionalState);
descriptor: (Lcom/google/common/collect/MoreCollectors$ToOptionalState;)Ljava/lang/Object;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual com.google.common.collect.MoreCollectors$ToOptionalState.getElement:()Ljava/lang/Object;
astore 1
start local 1 1: aload 1
getstatic com.google.common.collect.MoreCollectors.NULL_PLACEHOLDER:Ljava/lang/Object;
if_acmpne 2
aconst_null
goto 3
StackMap locals: java.lang.Object
StackMap stack:
2: aload 1
StackMap locals:
StackMap stack: java.lang.Object
3: areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 state Lcom/google/common/collect/MoreCollectors$ToOptionalState;
1 4 1 result Ljava/lang/Object;
}
SourceFile: "MoreCollectors.java"
NestMembers:
com.google.common.collect.MoreCollectors$ToOptionalState
InnerClasses:
private final ToOptionalState = com.google.common.collect.MoreCollectors$ToOptionalState of com.google.common.collect.MoreCollectors
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
public final Characteristics = java.util.stream.Collector$Characteristics of java.util.stream.Collector
RuntimeInvisibleAnnotations:
com.google.common.annotations.Beta()
com.google.common.annotations.GwtCompatible()