![JAR search and dependency download from the Maven repository](/logo.png)
com.google.common.collect.JdkBackedImmutableMap.class Maven / Gradle / Ivy
???? 4 ?
com/google/common/collect/Maps newHashMapWithExpectedSize (I)Ljava/util/HashMap;
java/util/Objects requireNonNull &(Ljava/lang/Object;)Ljava/lang/Object; java/util/Map$Entry
-com/google/common/collect/RegularImmutableMap
makeImmutable D(Ljava/util/Map$Entry;)Lcom/google/common/collect/ImmutableMapEntry;
getKey ()Ljava/lang/Object;
getValue !
java/util/Map put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; # key % java/lang/StringBuilder
$ ' ( ) ()V
$ + , - append -(Ljava/lang/Object;)Ljava/lang/StringBuilder; / =
$ 1 , 2 -(Ljava/lang/String;)Ljava/lang/StringBuilder;
$ 4 5 6 toString ()Ljava/lang/String;
8 9 : ; < /com/google/common/collect/JdkBackedImmutableMap conflictException \(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/IllegalArgumentException; > java/util/HashMap
= ' A B C containsKey (Ljava/lang/Object;)Z E F get H +com/google/common/collect/ImmutableMapEntry
G J ( K '(Ljava/lang/Object;Ljava/lang/Object;)V
M N O P Q 'com/google/common/collect/ImmutableList asImmutableList ?([Ljava/lang/Object;I)Lcom/google/common/collect/ImmutableList;
8 S ( T ;(Ljava/util/Map;Lcom/google/common/collect/ImmutableList;)V
V ' W &com/google/common/collect/ImmutableMap 8 Y Z [ delegateMap Ljava/util/Map; 8 ] ^ _ entries )Lcom/google/common/collect/ImmutableList;
M a b c size ()I e >com/google/common/collect/ImmutableMapEntrySet$RegularEntrySet
d g ( h T(Lcom/google/common/collect/ImmutableMap;Lcom/google/common/collect/ImmutableList;)V
j k l m $com/google/common/base/Preconditions checkNotNull o p q accept >(Ljava/util/function/BiConsumer;)Ljava/util/function/Consumer;
M s t u forEach (Ljava/util/function/Consumer;)V w ,com/google/common/collect/ImmutableMapKeySet
v y ( z +(Lcom/google/common/collect/ImmutableMap;)V | ,com/google/common/collect/ImmutableMapValues
{ y
V ? writeReplace ? ? ? p K java/util/function/BiConsumer Signature Ljava/util/Map; HLcom/google/common/collect/ImmutableList;>; create B(I[Ljava/util/Map$Entry;Z)Lcom/google/common/collect/ImmutableMap; Code LineNumberTable LocalVariableTable Ljava/lang/Object; value oldValue i I entry Ljava/util/Map$Entry; inI outI
newEntryArray [Ljava/util/Map$Entry; n
entryArray throwIfDuplicateKeys Z
duplicates dupCount LocalVariableTypeTable TK; TV; Ljava/util/Map$Entry; [Ljava/util/Map$Entry;
StackMapTable ? ? java/lang/Object RuntimeVisibleTypeAnnotations 5Lorg/checkerframework/checker/nullness/qual/Nullable; MethodParameters |(I[Ljava/util/Map$Entry;Z)Lcom/google/common/collect/ImmutableMap; this 1Lcom/google/common/collect/JdkBackedImmutableMap; 9Lcom/google/common/collect/JdkBackedImmutableMap; b(Ljava/util/Map;Lcom/google/common/collect/ImmutableList;>;)V (Ljava/lang/Object;)TV; RuntimeVisibleAnnotations Ljavax/annotation/CheckForNull; "RuntimeVisibleParameterAnnotations createEntrySet *()Lcom/google/common/collect/ImmutableSet; I()Lcom/google/common/collect/ImmutableSet;>; "(Ljava/util/function/BiConsumer;)V action Ljava/util/function/BiConsumer; )Ljava/util/function/BiConsumer<-TK;-TV;>; ,(Ljava/util/function/BiConsumer<-TK;-TV;>;)V createKeySet /()Lcom/google/common/collect/ImmutableSet; createValues 1()Lcom/google/common/collect/ImmutableCollection; 6()Lcom/google/common/collect/ImmutableCollection;
isPartialView ()Z RuntimeInvisibleAnnotations 0Lcom/google/common/annotations/J2ktIncompatible; /Lcom/google/common/annotations/GwtIncompatible; lambda$forEach$0 7(Ljava/util/function/BiConsumer;Ljava/util/Map$Entry;)V e ZLcom/google/common/collect/ImmutableMap;
SourceFile JdkBackedImmutableMap.java ;Lcom/google/common/collect/ElementTypesAreNonnullByDefault; -Lcom/google/common/annotations/GwtCompatible; emulated BootstrapMethods ? (Ljava/lang/Object;)V ?
8 ? ? ? ? (Ljava/util/Map$Entry;)V ?
? ? ? ? ? "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; InnerClasses Entry ? .com/google/common/collect/ImmutableMapEntrySet RegularEntrySet ? %java/lang/invoke/MethodHandles$Lookup ? java/lang/invoke/MethodHandles Lookup 0 8 V ? Z [ ? ? ? ^ _ ? ? ? ? ? / $? N:66? ?++2? ?
? S+2? :+2? :-? : ? N? -"+2? $Y? &+2? ? *.? 0 ? *? 3? 7?? ? =Y? ?:? W????t? wd?
:66? _+2? ?
: ? :
? @ ? .
? D :? ? %? GY
? I:
? W? S????L? 8Y-+? L? R? ? ~ . 3 4 5 7 % 8 0 9 ; : G ; L <