![JAR search and dependency download from the Maven repository](/logo.png)
com.google.common.collect.ConcurrentHashMultiset.class Maven / Gradle / Ivy
???? 4? ? ? ?
?
?
?
? ?
R ? L ? ?
? ?
? ? ?
? L ? ? ? ? ? ? ?
? ?
? ? ? ? ?
?
? ?
? ?
?
?
L
) ?
)
)
)
( L
L y
? L
9!"#
;$%
>& L ?'
A()
C*
+, L-
./
.0
12
13
456 V7
89
R
R:
R;<= EntrySet InnerClasses> FieldSettersHolder countMap $Ljava/util/concurrent/ConcurrentMap; Signature TLjava/util/concurrent/ConcurrentMap; serialVersionUID J
ConstantValue create 4()Lcom/google/common/collect/ConcurrentHashMultiset; Code LineNumberTable O()Lcom/google/common/collect/ConcurrentHashMultiset; H(Ljava/lang/Iterable;)Lcom/google/common/collect/ConcurrentHashMultiset; LocalVariableTable elements Ljava/lang/Iterable; multiset 2Lcom/google/common/collect/ConcurrentHashMultiset; LocalVariableTypeTable Ljava/lang/Iterable<+TE;>; 7Lcom/google/common/collect/ConcurrentHashMultiset; MethodParameters i(Ljava/lang/Iterable<+TE;>;)Lcom/google/common/collect/ConcurrentHashMultiset; X(Ljava/util/concurrent/ConcurrentMap;)Lcom/google/common/collect/ConcurrentHashMultiset; ?(Ljava/util/concurrent/ConcurrentMap;)Lcom/google/common/collect/ConcurrentHashMultiset; '(Ljava/util/concurrent/ConcurrentMap;)V this W(Ljava/util/concurrent/ConcurrentMap;)V RuntimeInvisibleAnnotations 1Lcom/google/common/annotations/VisibleForTesting; count (Ljava/lang/Object;)I element Ljava/lang/Object; existingCounter +Ljava/util/concurrent/atomic/AtomicInteger;
StackMapTable "RuntimeVisibleParameterAnnotations Ljavax/annotation/CheckForNull; size ()I value sum? toArray ()[Ljava/lang/Object; (([Ljava/lang/Object;)[Ljava/lang/Object; array [Ljava/lang/Object; [TT; ([TT;)[TT; RuntimeVisibleTypeAnnotations 5Lorg/checkerframework/checker/nullness/qual/Nullable; snapshot ()Ljava/util/List; i I entry Entry *Lcom/google/common/collect/Multiset$Entry; list Ljava/util/List; TE; /Lcom/google/common/collect/Multiset$Entry; Ljava/util/List;@A ()Ljava/util/List; add (Ljava/lang/Object;I)I newValue overflow Ljava/lang/ArithmeticException;
newCounter oldValue occurrences (TE;I)I 8Lcom/google/errorprone/annotations/CanIgnoreReturnValue; remove
removeExactly (Ljava/lang/Object;I)Z setCount (Ljava/lang/Object;II)Z expectedOldCount newCount (TE;II)Z createElementSet ()Ljava/util/Set; delegate Ljava/util/Set; Ljava/util/Set; ()Ljava/util/Set; elementIterator ()Ljava/util/Iterator; ()Ljava/util/Iterator; createEntrySet
Deprecated B()Ljava/util/Set;>; RuntimeVisibleAnnotations Ljava/lang/Deprecated; distinctElements isEmpty ()Z
entryIterator readOnlyIterator Ljava/util/Iterator; ELjava/util/Iterator;>; G()Ljava/util/Iterator;>; iterator clear ()V writeObject (Ljava/io/ObjectOutputStream;)V stream Ljava/io/ObjectOutputStream;
ExceptionsB
readObject (Ljava/io/ObjectInputStream;)V Ljava/io/ObjectInputStream; deserializedCountMap ;C 0Lcom/google/common/annotations/J2ktIncompatible; entrySet
elementSet contains (Ljava/lang/Object;)Z
access$100 X(Lcom/google/common/collect/ConcurrentHashMultiset;)Ljava/util/concurrent/ConcurrentMap; x0 ]Lcom/google/common/collect/AbstractMultiset;Ljava/io/Serializable;
SourceFile ConcurrentHashMultiset.java ;Lcom/google/common/collect/ElementTypesAreNonnullByDefault; /Lcom/google/common/annotations/GwtIncompatible; X Y 0com/google/common/collect/ConcurrentHashMultiset &java/util/concurrent/ConcurrentHashMap s ? s t a bDEF ? ? "the backing map (%s) must be emptyGHIJKL )java/util/concurrent/atomic/AtomicIntegerM ?NOP ? ?Q ?RSTUV ? ? ? ? ? ? ? ?WXY ? ?Z[ (com/google/common/collect/Multiset$Entry\S] ? ? ?^_ y z`ab scdefghij java/lang/ArithmeticException "java/lang/IllegalArgumentException java/lang/StringBuilder Overflow adding klkm occurrences to a count of no spqrsth ?uvw oldCountx ? 2com/google/common/collect/ConcurrentHashMultiset$1 sy java/lang/AssertionError should never be called sz 9com/google/common/collect/ConcurrentHashMultiset$EntrySet s{ 2com/google/common/collect/ConcurrentHashMultiset$2 s| 2com/google/common/collect/ConcurrentHashMultiset$3 s}~? ? ??? ? ?z?? ? ?S??_ "java/util/concurrent/ConcurrentMap????? ? ? ? ? *com/google/common/collect/AbstractMultiset java/io/Serializable Ccom/google/common/collect/ConcurrentHashMultiset$FieldSettersHolder java/util/Iterator java/util/List java/lang/Object java/io/IOException java/lang/ClassNotFoundException #com/google/common/collect/Iterables addAll -(Ljava/util/Collection;Ljava/lang/Iterable;)Z $com/google/common/base/Preconditions
checkArgument ((ZLjava/lang/String;Ljava/lang/Object;)V com/google/common/collect/Maps safeGet 5(Ljava/util/Map;Ljava/lang/Object;)Ljava/lang/Object; get values ()Ljava/util/Collection; java/util/Collection hasNext next ()Ljava/lang/Object; !com/google/common/primitives/Ints
saturatedCast (J)I com/google/common/collect/Lists newArrayListWithExpectedSize (I)Ljava/util/ArrayList;
java/util/Set "com/google/common/collect/Multiset
getElement getCount checkNotNull &(Ljava/lang/Object;)Ljava/lang/Object; .com/google/common/collect/CollectPreconditions
checkPositive (ILjava/lang/String;)V (I)V putIfAbsent 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; com/google/common/math/IntMath
checkedAdd (II)I
compareAndSet (II)Z append -(Ljava/lang/String;)Ljava/lang/StringBuilder; (I)Ljava/lang/StringBuilder; toString ()Ljava/lang/String; (Ljava/lang/String;)V replace 9(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Z java/lang/Math max '(Ljava/lang/Object;Ljava/lang/Object;)Z checkNonnegative (ILjava/lang/String;)I keySet D(Lcom/google/common/collect/ConcurrentHashMultiset;Ljava/util/Set;)V (Ljava/lang/Object;)V i(Lcom/google/common/collect/ConcurrentHashMultiset;Lcom/google/common/collect/ConcurrentHashMultiset$1;)V 5(Lcom/google/common/collect/ConcurrentHashMultiset;)V I(Lcom/google/common/collect/ConcurrentHashMultiset;Ljava/util/Iterator;)V #com/google/common/collect/Multisets iteratorImpl :(Lcom/google/common/collect/Multiset;)Ljava/util/Iterator; java/io/ObjectOutputStream defaultWriteObject java/io/ObjectInputStream defaultReadObject java/util/Objects requireNonNull COUNT_MAP_FIELD_SETTER FieldSetter 5Lcom/google/common/collect/Serialization$FieldSetter;? 3com/google/common/collect/Serialization$FieldSetter set '(Ljava/lang/Object;Ljava/lang/Object;)V 'com/google/common/collect/Serialization 1 R S ? X Y Z [ \ ] ^ _ a b c ' ? Y? Y? ? ? d \ Z e a f c d ? L+*? W+? d h i
j g h i j k l h m j n o h Z p a q c E ? Y*? ? d | g X Y l X [ o X Z r s t c r *? +?
+? *+? ? d ? ? ? ? g u k X Y l u n X [ o X Z v w x y z c } *? +? ?
M,? ? ,? ? d
? ? g u k { |
} ~ l u n
?
C o { ? ? ? ? c ? 6 @*? ? ? N-? ? -? ?
:? ?a@???? ? d ? ? % ? . ? 1 ? g % ? ~ 6 u k 4 ? ] l 6 u n ? ?? ? ? c F
*? ? ? d ? g
u k l
u n ? ? c [ *? +? ? d ? g u k ? ? l u n ? ? o ? Z ? ?
? ? ? c
N*? ? L*? ? M,? ? 4,? ? N-? :-? 6? +? W???????+? d " ? ? % ? - ? : ? C ? I ? L ? g 4 5 ? ? - { | % $ ? ? N u k F ? ? l * - { ? % $ ? ? N u n F ? ? ? ? ?? " ?? ? Z ? ? ? c ? ?+? W? *+? ?!? "*? +? ?
N-? *? +?
Y? #? $ ?
N-? ?-? 6? C? %6-? &? ?? U:? (Y? )Y? *+? ,? -.? ,? -? /? 0??
Y? #:*? +? $ ? *? +-? 1 ? ??????[ L a e ' d ^ ? ? ? ? ? ! ? % ? ; ? ? ? A ? G ? L ? T ? _ ? b ? e ? g ? ? ? ? ? ? ? ? ? ? ? ? ? g R T ? ? g % ? ? ? ! ? ~ G p ? ? ! ? } ~ ? u k ? { | ? ? ? l ? u n ? { ? ? +
? B '&? (
? ? o { ? Z ? w ? ? ? c # ^? *+? ?!? "*? +? ?
N-? ?-? 6? /d? 26-? &? ? *? +-? 3 W?? ???? d B
" ( - 7 B G# S% V' Y( [* g > 7 ? ? ( 3 ? ? ^ u k ^ { | ^ ? ? B } ~ l ^ u n
?
? 0? ? o { ? w ? ? ? ? ? c S? ?!? "*? +? ?
N-? ?-? 6? ?d6-? &? ? *? +-? 3 W???? d > ; <