![JAR search and dependency download from the Maven repository](/logo.png)
com.google.common.collect.ImmutableMap$Builder.class Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jelly Show documentation
Show all versions of jelly Show documentation
Java Functional Metaprogramming API
The newest version!
???? 2 ? n o
( p
) q r ( s ( t ( u
n v
w x /
( y
z { | }
( ~ ?
( ? ? ? ? ? ? ? ? ? ?
( ? ( ? ?
? ? *
? ? ?
z ?
|
}
z ?
? ?
? ?
? ?
? ?
? ? ? ? valueComparator Ljava/util/Comparator; Signature Ljava/util/Comparator<-TV;>; entries .[Lcom/google/common/collect/ImmutableMapEntry; 6[Lcom/google/common/collect/ImmutableMapEntry; size I entriesUsed Z ()V Code LineNumberTable LocalVariableTable this Builder InnerClasses 0Lcom/google/common/collect/ImmutableMap$Builder; LocalVariableTypeTable 8Lcom/google/common/collect/ImmutableMap$Builder; (I)V initialCapacity ensureCapacity minCapacity
StackMapTable put V(Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/collect/ImmutableMap$Builder; key Ljava/lang/Object; value entry -Lcom/google/common/collect/ImmutableMapEntry; TK; TV; 5Lcom/google/common/collect/ImmutableMapEntry; @(TK;TV;)Lcom/google/common/collect/ImmutableMap$Builder; Entry G(Ljava/util/Map$Entry;)Lcom/google/common/collect/ImmutableMap$Builder; Ljava/util/Map$Entry; Ljava/util/Map$Entry<+TK;+TV;>; Y(Ljava/util/Map$Entry<+TK;+TV;>;)Lcom/google/common/collect/ImmutableMap$Builder; putAll A(Ljava/util/Map;)Lcom/google/common/collect/ImmutableMap$Builder; map Ljava/util/Map; Ljava/util/Map<+TK;+TV;>; S(Ljava/util/Map<+TK;+TV;>;)Lcom/google/common/collect/ImmutableMap$Builder; F(Ljava/lang/Iterable;)Lcom/google/common/collect/ImmutableMap$Builder; i$ Ljava/util/Iterator; Ljava/lang/Iterable; 6Ljava/lang/Iterable<+Ljava/util/Map$Entry<+TK;+TV;>;>; ? p(Ljava/lang/Iterable<+Ljava/util/Map$Entry<+TK;+TV;>;>;)Lcom/google/common/collect/ImmutableMap$Builder; RuntimeInvisibleAnnotations $Lcom/google/common/annotations/Beta; orderEntriesByValue H(Ljava/util/Comparator;)Lcom/google/common/collect/ImmutableMap$Builder; V(Ljava/util/Comparator<-TV;>;)Lcom/google/common/collect/ImmutableMap$Builder; build *()Lcom/google/common/collect/ImmutableMap; ? 2()Lcom/google/common/collect/ImmutableMap; <Ljava/lang/Object;
SourceFile ImmutableMap.java ? ? 2 5 @ 5 6 +com/google/common/collect/ImmutableMapEntry . / 1 2 3 4 ? ? ? ? ? B @ ? ? ? ? ? ? ? E F ? ? ? U [ java/util/Collection 1 ? ? ? ? ? ? ? ? ? java/util/Map$Entry E Q * + valueComparator was already set ? ? ? ? ? java/util/Comparator ? h ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? .com/google/common/collect/ImmutableMap$Builder java/lang/Object java/util/Iterator ? 5com/google/common/collect/ImmutableCollection$Builder DEFAULT_INITIAL_CAPACITY expandedCapacity (II)I &com/google/common/collect/ObjectArrays arraysCopyOf )([Ljava/lang/Object;I)[Ljava/lang/Object; &com/google/common/collect/ImmutableMap entryOf S(Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/collect/ImmutableMapEntry; getKey ()Ljava/lang/Object; getValue
java/util/Map entrySet ()Ljava/util/Set; ()I java/lang/Iterable iterator ()Ljava/util/Iterator; hasNext ()Z next $com/google/common/base/Preconditions
checkState (ZLjava/lang/Object;)V checkNotNull 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; of N(Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/collect/ImmutableMap; "com/google/common/collect/Ordering from <(Ljava/util/Comparator;)Lcom/google/common/collect/Ordering; com/google/common/collect/Maps
valueFunction #()Lcom/google/common/base/Function;
onResultOf G(Lcom/google/common/base/Function;)Lcom/google/common/collect/Ordering; java/util/Arrays sort .([Ljava/lang/Object;IILjava/util/Comparator;)V -com/google/common/collect/RegularImmutableMap fromEntryArray H(I[Ljava/util/Map$Entry;)Lcom/google/common/collect/RegularImmutableMap; -com/google/common/collect/ImmutableCollection ! ( ) * + , - . / , 0 1 2 3 4 5 6 7 F *? ? 8
? ? 9 : = > : ? 5 @ 7 m *? *? ? *? *? ? 8 ? ? ? ? ? 9 : = A 2 > : ? B @ 7 ? &*? ?? **? *? ?? ? ?
? *? ? 8 ? ? ? % ? 9 &