com.google.common.base.Enums.class Maven / Gradle / Ivy
???? 4 ?
java/lang/Object ()V
java/lang/Enum getDeclaringClass ()Ljava/lang/Class;
name ()Ljava/lang/String;
java/lang/Class getDeclaredField -(Ljava/lang/String;)Ljava/lang/reflect/Field; java/lang/NoSuchFieldException java/lang/AssertionError
(Ljava/lang/Object;)V
! " # $com/google/common/base/Preconditions checkNotNull &(Ljava/lang/Object;)Ljava/lang/Object;
% & ' ( ) com/google/common/base/Platform getEnumIfPresent F(Ljava/lang/Class;Ljava/lang/String;)Lcom/google/common/base/Optional; + java/util/HashMap
*
. / 0 1 2 java/util/EnumSet allOf &(Ljava/lang/Class;)Ljava/util/EnumSet;
. 4 5 6 iterator ()Ljava/util/Iterator; 8 9 : ; < java/util/Iterator hasNext ()Z 8 > ? @ next ()Ljava/lang/Object; B java/lang/ref/WeakReference
A E F G H I
java/util/Map put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; K L M N O com/google/common/base/Enums enumConstantCache Ljava/util/Map; E Q R # get
K T U V
populateCache "(Ljava/lang/Class;)Ljava/util/Map; X ,com/google/common/base/Enums$StringConverter
W Z [ (Ljava/lang/Class;)V ] java/util/WeakHashMap
\ Signature ?Ljava/util/Map;>;Ljava/util/Map;>;>;>; RuntimeInvisibleAnnotations /Lcom/google/common/annotations/GwtIncompatible; Code LineNumberTable LocalVariableTable this Lcom/google/common/base/Enums; getField +(Ljava/lang/Enum;)Ljava/lang/reflect/Field;
impossible Ljava/lang/NoSuchFieldException; enumValue Ljava/lang/Enum; clazz Ljava/lang/Class; LocalVariableTypeTable Ljava/lang/Enum<*>; Ljava/lang/Class<*>;
StackMapTable MethodParameters .(Ljava/lang/Enum<*>;)Ljava/lang/reflect/Field; getIfPresent enumClass value Ljava/lang/String; Ljava/lang/Class; i;>(Ljava/lang/Class;Ljava/lang/String;)Lcom/google/common/base/Optional; enumInstance result TT; VLjava/util/Map;>;>; ?;>(Ljava/lang/Class;)Ljava/util/Map;>;>; getEnumConstants constants ? java/lang/Throwable stringConverter 5(Ljava/lang/Class;)Lcom/google/common/base/Converter; j;>(Ljava/lang/Class;)Lcom/google/common/base/Converter;
SourceFile
Enums.java RuntimeVisibleAnnotations 8Lcom/google/common/base/ElementTypesAreNonnullByDefault; 0Lcom/google/common/annotations/J2ktIncompatible; InnerClasses StringConverter 1 K N O _ ` a b c / *? ? d ) e f g h i c ? *? L+*?
? ?M? Y,? ?
d 5 7 8 9 e j k l m n o p l q n r s ? t l _ u a b v ) c ^ *? W+? W*+? $? d F G
H e w o x y p w z t w x _ {
U V c ? F? *Y? ,L*? -? 3M,? 7 ? #,? = ? N+-?
? AY-? C? D W??ڲ J*+? D W+? d R S # T 6 U 9 V D W e # | m F w o > } O p # | ~ F w z > } s ? E 8? ( t w _ ? a b ? V c ? %? JYL² J*? P ? EM,? *? SM,+ðN+?-? # d ] ^ _ ` b c e
? O % w o p
? % w z s ? E? ? t w _ ? a b ? ? c E ? WY*? Y? d p e w o p w z t w _ ? a b ? c # ? \Y? ^? J? d M ? ? ? ? a
b ? ?
W K ?