com.groupbyinc.flux.common.netty.util.ConstantPool.class Maven / Gradle / Ivy
???? 2 ? 2com/groupbyinc/flux/common/netty/util/ConstantPool L;>Ljava/lang/Object; java/lang/Object ConstantPool.java constants $Ljava/util/concurrent/ConcurrentMap; ;Ljava/util/concurrent/ConcurrentMap; nextId +Ljava/util/concurrent/atomic/AtomicInteger; ()V
@com/groupbyinc/flux/common/netty/util/internal/PlatformDependent newConcurrentHashMap &()Ljava/util/concurrent/ConcurrentMap;
)java/util/concurrent/atomic/AtomicInteger (I)V
this 9Lcom/groupbyinc/flux/common/netty/util/ConstantPool; 4Lcom/groupbyinc/flux/common/netty/util/ConstantPool; valueOf U(Ljava/lang/Class;Ljava/lang/String;)Lcom/groupbyinc/flux/common/netty/util/Constant; java/lang/NullPointerException $ firstNameComponent & (Ljava/lang/String;)V (
% ) secondNameComponent + java/lang/StringBuilder -
. java/lang/Class 0 getName ()Ljava/lang/String; 2 3
1 4 append -(Ljava/lang/String;)Ljava/lang/StringBuilder; 6 7
. 8 (C)Ljava/lang/StringBuilder; 6 :
. ; toString = 3
. > D(Ljava/lang/String;)Lcom/groupbyinc/flux/common/netty/util/Constant; " @
A Ljava/lang/Class<*>; Ljava/lang/Class; Ljava/lang/String; checkNotNullAndNotEmpty &(Ljava/lang/String;)Ljava/lang/String; F G
H getOrCreate J @
K name "java/util/concurrent/ConcurrentMap N get &(Ljava/lang/Object;)Ljava/lang/Object; P Q O R .com/groupbyinc/flux/common/netty/util/Constant T ()I
V
W newConstant E(ILjava/lang/String;)Lcom/groupbyinc/flux/common/netty/util/Constant; Y Z
[ putIfAbsent 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; ] ^ O _ tempConstant TT; 0Lcom/groupbyinc/flux/common/netty/util/Constant; constant exists (Ljava/lang/String;)Z containsKey (Ljava/lang/Object;)Z g h O i newInstance
createOrThrow l @
m "java/lang/IllegalArgumentException o '%s' is already in use q java/lang/String s format 9(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String; u v
t w
p ) M 9com/groupbyinc/flux/common/netty/util/internal/ObjectUtil { checkNotNull 8(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object; } ~
| isEmpty ()Z ? ?
t ?
empty name ? Ljava/lang/Deprecated; getAndIncrement ? V
? Signature Code LocalVariableTable LocalVariableTypeTable LineNumberTable
StackMapTable +(Ljava/lang/Class<*>;Ljava/lang/String;)TT; (Ljava/lang/String;)TT; (ILjava/lang/String;)TT;
Deprecated RuntimeVisibleAnnotations
SourceFile! ?
? \ *? *? ? *? Y? ? ? ? ! ? ? " " # ? ? ;+?
? %Y'? *?,?
? %Y,? *?*? .Y? /+? 5? 9#? <,? 9? ?? B? ? ; ! ; &