public final class com.google.common.collect.ConcurrentHashMultiset<E> extends com.google.common.collect.AbstractMultiset<E> implements java.io.Serializable
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: com.google.common.collect.ConcurrentHashMultiset
super_class: com.google.common.collect.AbstractMultiset
{
private final transient java.util.concurrent.ConcurrentMap<E, java.util.concurrent.atomic.AtomicInteger> countMap;
descriptor: Ljava/util/concurrent/ConcurrentMap;
flags: (0x0092) ACC_PRIVATE, ACC_FINAL, ACC_TRANSIENT
Signature: Ljava/util/concurrent/ConcurrentMap<TE;Ljava/util/concurrent/atomic/AtomicInteger;>;
private static final long serialVersionUID;
descriptor: J
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 1
public static <E> com.google.common.collect.ConcurrentHashMultiset<E> create();
descriptor: ()Lcom/google/common/collect/ConcurrentHashMultiset;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=0, args_size=0
0: new com.google.common.collect.ConcurrentHashMultiset
dup
new java.util.concurrent.ConcurrentHashMap
dup
invokespecial java.util.concurrent.ConcurrentHashMap.<init>:()V
invokespecial com.google.common.collect.ConcurrentHashMultiset.<init>:(Ljava/util/concurrent/ConcurrentMap;)V
areturn
LocalVariableTable:
Start End Slot Name Signature
Signature: <E:Ljava/lang/Object;>()Lcom/google/common/collect/ConcurrentHashMultiset<TE;>;
public static <E> com.google.common.collect.ConcurrentHashMultiset<E> create(java.lang.Iterable<? extends E>);
descriptor: (Ljava/lang/Iterable;)Lcom/google/common/collect/ConcurrentHashMultiset;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: invokestatic com.google.common.collect.ConcurrentHashMultiset.create:()Lcom/google/common/collect/ConcurrentHashMultiset;
astore 1
start local 1 1: aload 1
aload 0
invokestatic com.google.common.collect.Iterables.addAll:(Ljava/util/Collection;Ljava/lang/Iterable;)Z
pop
2: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 elements Ljava/lang/Iterable<+TE;>;
1 3 1 multiset Lcom/google/common/collect/ConcurrentHashMultiset<TE;>;
Signature: <E:Ljava/lang/Object;>(Ljava/lang/Iterable<+TE;>;)Lcom/google/common/collect/ConcurrentHashMultiset<TE;>;
MethodParameters:
Name Flags
elements
public static <E> com.google.common.collect.ConcurrentHashMultiset<E> create(java.util.concurrent.ConcurrentMap<E, java.util.concurrent.atomic.AtomicInteger>);
descriptor: (Ljava/util/concurrent/ConcurrentMap;)Lcom/google/common/collect/ConcurrentHashMultiset;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new com.google.common.collect.ConcurrentHashMultiset
dup
aload 0
invokespecial com.google.common.collect.ConcurrentHashMultiset.<init>:(Ljava/util/concurrent/ConcurrentMap;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 countMap Ljava/util/concurrent/ConcurrentMap<TE;Ljava/util/concurrent/atomic/AtomicInteger;>;
Signature: <E:Ljava/lang/Object;>(Ljava/util/concurrent/ConcurrentMap<TE;Ljava/util/concurrent/atomic/AtomicInteger;>;)Lcom/google/common/collect/ConcurrentHashMultiset<TE;>;
RuntimeInvisibleAnnotations:
com.google.common.annotations.Beta()
MethodParameters:
Name Flags
countMap
void <init>(java.util.concurrent.ConcurrentMap<E, java.util.concurrent.atomic.AtomicInteger>);
descriptor: (Ljava/util/concurrent/ConcurrentMap;)V
flags: (0x0000)
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial com.google.common.collect.AbstractMultiset.<init>:()V
1: aload 1
invokeinterface java.util.concurrent.ConcurrentMap.isEmpty:()Z
ldc "the backing map (%s) must be empty"
aload 1
invokestatic com.google.common.base.Preconditions.checkArgument:(ZLjava/lang/String;Ljava/lang/Object;)V
2: aload 0
aload 1
putfield com.google.common.collect.ConcurrentHashMultiset.countMap:Ljava/util/concurrent/ConcurrentMap;
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/google/common/collect/ConcurrentHashMultiset<TE;>;
0 4 1 countMap Ljava/util/concurrent/ConcurrentMap<TE;Ljava/util/concurrent/atomic/AtomicInteger;>;
Signature: (Ljava/util/concurrent/ConcurrentMap<TE;Ljava/util/concurrent/atomic/AtomicInteger;>;)V
RuntimeInvisibleAnnotations:
com.google.common.annotations.VisibleForTesting()
RuntimeInvisibleTypeAnnotations:
METHOD_RETURN
com.google.common.annotations.VisibleForTesting()
MethodParameters:
Name Flags
countMap
public int count(java.lang.Object);
descriptor: (Ljava/lang/Object;)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield com.google.common.collect.ConcurrentHashMultiset.countMap:Ljava/util/concurrent/ConcurrentMap;
aload 1
invokestatic com.google.common.collect.Maps.safeGet:(Ljava/util/Map;Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.concurrent.atomic.AtomicInteger
astore 2
start local 2 1: aload 2
ifnonnull 2
iconst_0
goto 3
StackMap locals: java.util.concurrent.atomic.AtomicInteger
StackMap stack:
2: aload 2
invokevirtual java.util.concurrent.atomic.AtomicInteger.get:()I
StackMap locals:
StackMap stack: int
3: ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/google/common/collect/ConcurrentHashMultiset<TE;>;
0 4 1 element Ljava/lang/Object;
1 4 2 existingCounter Ljava/util/concurrent/atomic/AtomicInteger;
RuntimeVisibleTypeAnnotations:
METHOD_FORMAL_PARAMETER
org.checkerframework.checker.nullness.qual.Nullable()
MethodParameters:
Name Flags
element
public int size();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=5, args_size=1
start local 0 0: lconst_0
lstore 1
start local 1 1: aload 0
getfield com.google.common.collect.ConcurrentHashMultiset.countMap:Ljava/util/concurrent/ConcurrentMap;
invokeinterface java.util.concurrent.ConcurrentMap.values:()Ljava/util/Collection;
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 4
goto 4
StackMap locals: com.google.common.collect.ConcurrentHashMultiset long top java.util.Iterator
StackMap stack:
2: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.util.concurrent.atomic.AtomicInteger
astore 3
start local 3 3: lload 1
aload 3
invokevirtual java.util.concurrent.atomic.AtomicInteger.get:()I
i2l
ladd
lstore 1
end local 3 4: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
5: lload 1
invokestatic com.google.common.primitives.Ints.saturatedCast:(J)I
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lcom/google/common/collect/ConcurrentHashMultiset<TE;>;
1 6 1 sum J
3 4 3 value Ljava/util/concurrent/atomic/AtomicInteger;
public java.lang.Object[] toArray();
descriptor: ()[Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual com.google.common.collect.ConcurrentHashMultiset.snapshot:()Ljava/util/List;
invokeinterface java.util.List.toArray:()[Ljava/lang/Object;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/google/common/collect/ConcurrentHashMultiset<TE;>;
public <T> T[] toArray();
descriptor: ([Ljava/lang/Object;)[Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual com.google.common.collect.ConcurrentHashMultiset.snapshot:()Ljava/util/List;
aload 1
invokeinterface java.util.List.toArray:([Ljava/lang/Object;)[Ljava/lang/Object;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/google/common/collect/ConcurrentHashMultiset<TE;>;
0 1 1 array [Ljava/lang/Object;
Signature: <T:Ljava/lang/Object;>([TT;)[TT;
MethodParameters:
Name Flags
array
private java.util.List<E> snapshot();
descriptor: ()Ljava/util/List;
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=6, args_size=1
start local 0 0: aload 0
invokevirtual com.google.common.collect.ConcurrentHashMultiset.size:()I
invokestatic com.google.common.collect.Lists.newArrayListWithExpectedSize:(I)Ljava/util/ArrayList;
astore 1
start local 1 1: aload 0
invokevirtual com.google.common.collect.ConcurrentHashMultiset.entrySet:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 3
goto 9
StackMap locals: com.google.common.collect.ConcurrentHashMultiset java.util.List top java.util.Iterator
StackMap stack:
2: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast com.google.common.collect.Multiset$Entry
astore 2
start local 2 3: aload 2
invokeinterface com.google.common.collect.Multiset$Entry.getElement:()Ljava/lang/Object;
astore 4
start local 4 4: aload 2
invokeinterface com.google.common.collect.Multiset$Entry.getCount:()I
istore 5
start local 5 5: goto 8
6: StackMap locals: com.google.common.collect.ConcurrentHashMultiset java.util.List com.google.common.collect.Multiset$Entry java.util.Iterator java.lang.Object int
StackMap stack:
aload 1
aload 4
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
7: iinc 5 -1
StackMap locals:
StackMap stack:
8: iload 5
ifgt 6
end local 5 end local 4 end local 2 9: StackMap locals: com.google.common.collect.ConcurrentHashMultiset java.util.List top java.util.Iterator
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
10: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lcom/google/common/collect/ConcurrentHashMultiset<TE;>;
1 11 1 list Ljava/util/List<TE;>;
3 9 2 entry Lcom/google/common/collect/Multiset$Entry<TE;>;
4 9 4 element TE;
5 9 5 i I
Signature: ()Ljava/util/List<TE;>;
public int add(E, );
descriptor: (Ljava/lang/Object;I)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokestatic com.google.common.base.Preconditions.checkNotNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: iload 2
ifne 3
2: aload 0
aload 1
invokevirtual com.google.common.collect.ConcurrentHashMultiset.count:(Ljava/lang/Object;)I
ireturn
3: StackMap locals:
StackMap stack:
iload 2
ldc "occurences"
invokestatic com.google.common.collect.CollectPreconditions.checkPositive:(ILjava/lang/String;)V
4: StackMap locals:
StackMap stack:
aload 0
getfield com.google.common.collect.ConcurrentHashMultiset.countMap:Ljava/util/concurrent/ConcurrentMap;
aload 1
invokestatic com.google.common.collect.Maps.safeGet:(Ljava/util/Map;Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.concurrent.atomic.AtomicInteger
astore 3
start local 3 5: aload 3
ifnonnull 9
6: aload 0
getfield com.google.common.collect.ConcurrentHashMultiset.countMap:Ljava/util/concurrent/ConcurrentMap;
aload 1
new java.util.concurrent.atomic.AtomicInteger
dup
iload 2
invokespecial java.util.concurrent.atomic.AtomicInteger.<init>:(I)V
invokeinterface java.util.concurrent.ConcurrentMap.putIfAbsent:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.concurrent.atomic.AtomicInteger
astore 3
7: aload 3
ifnonnull 9
8: iconst_0
ireturn
9: StackMap locals: java.util.concurrent.atomic.AtomicInteger
StackMap stack:
aload 3
invokevirtual java.util.concurrent.atomic.AtomicInteger.get:()I
istore 4
start local 4 10: iload 4
ifeq 19
11: iload 4
iload 2
invokestatic com.google.common.math.IntMath.checkedAdd:(II)I
istore 5
start local 5 12: aload 3
iload 4
iload 5
invokevirtual java.util.concurrent.atomic.AtomicInteger.compareAndSet:(II)Z
ifeq 9
13: iload 4
14: ireturn
end local 5 15: StackMap locals: com.google.common.collect.ConcurrentHashMultiset java.lang.Object int java.util.concurrent.atomic.AtomicInteger int
StackMap stack: java.lang.ArithmeticException
pop
16: new java.lang.IllegalArgumentException
dup
17: new java.lang.StringBuilder
dup
ldc "Overflow adding "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 2
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc " occurrences to a count of "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
iload 4
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
18: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
19: StackMap locals:
StackMap stack:
new java.util.concurrent.atomic.AtomicInteger
dup
iload 2
invokespecial java.util.concurrent.atomic.AtomicInteger.<init>:(I)V
astore 5
start local 5 20: aload 0
getfield com.google.common.collect.ConcurrentHashMultiset.countMap:Ljava/util/concurrent/ConcurrentMap;
aload 1
aload 5
invokeinterface java.util.concurrent.ConcurrentMap.putIfAbsent:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
ifnull 22
21: aload 0
getfield com.google.common.collect.ConcurrentHashMultiset.countMap:Ljava/util/concurrent/ConcurrentMap;
aload 1
aload 3
aload 5
invokeinterface java.util.concurrent.ConcurrentMap.replace:(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Z
ifeq 4
22: StackMap locals: java.util.concurrent.atomic.AtomicInteger
StackMap stack:
iconst_0
ireturn
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 23 0 this Lcom/google/common/collect/ConcurrentHashMultiset<TE;>;
0 23 1 element TE;
0 23 2 occurrences I
5 23 3 existingCounter Ljava/util/concurrent/atomic/AtomicInteger;
10 23 4 oldValue I
12 15 5 newValue I
20 23 5 newCounter Ljava/util/concurrent/atomic/AtomicInteger;
Exception table:
from to target type
11 14 15 Class java.lang.ArithmeticException
Signature: (TE;I)I
RuntimeInvisibleAnnotations:
com.google.errorprone.annotations.CanIgnoreReturnValue()
MethodParameters:
Name Flags
element
occurrences
public int remove(java.lang.Object, int);
descriptor: (Ljava/lang/Object;I)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=6, args_size=3
start local 0 start local 1 start local 2 0: iload 2
ifne 2
1: aload 0
aload 1
invokevirtual com.google.common.collect.ConcurrentHashMultiset.count:(Ljava/lang/Object;)I
ireturn
2: StackMap locals:
StackMap stack:
iload 2
ldc "occurences"
invokestatic com.google.common.collect.CollectPreconditions.checkPositive:(ILjava/lang/String;)V
3: aload 0
getfield com.google.common.collect.ConcurrentHashMultiset.countMap:Ljava/util/concurrent/ConcurrentMap;
aload 1
invokestatic com.google.common.collect.Maps.safeGet:(Ljava/util/Map;Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.concurrent.atomic.AtomicInteger
astore 3
start local 3 4: aload 3
ifnonnull 6
5: iconst_0
ireturn
6: StackMap locals: java.util.concurrent.atomic.AtomicInteger
StackMap stack:
aload 3
invokevirtual java.util.concurrent.atomic.AtomicInteger.get:()I
istore 4
start local 4 7: iload 4
ifeq 13
8: iconst_0
iload 4
iload 2
isub
invokestatic java.lang.Math.max:(II)I
istore 5
start local 5 9: aload 3
iload 4
iload 5
invokevirtual java.util.concurrent.atomic.AtomicInteger.compareAndSet:(II)Z
ifeq 6
10: iload 5
ifne 12
11: aload 0
getfield com.google.common.collect.ConcurrentHashMultiset.countMap:Ljava/util/concurrent/ConcurrentMap;
aload 1
aload 3
invokeinterface java.util.concurrent.ConcurrentMap.remove:(Ljava/lang/Object;Ljava/lang/Object;)Z
pop
12: StackMap locals: int int
StackMap stack:
iload 4
ireturn
end local 5 13: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lcom/google/common/collect/ConcurrentHashMultiset<TE;>;
0 14 1 element Ljava/lang/Object;
0 14 2 occurrences I
4 14 3 existingCounter Ljava/util/concurrent/atomic/AtomicInteger;
7 14 4 oldValue I
9 13 5 newValue I
RuntimeInvisibleAnnotations:
com.google.errorprone.annotations.CanIgnoreReturnValue()
RuntimeVisibleTypeAnnotations:
METHOD_FORMAL_PARAMETER
org.checkerframework.checker.nullness.qual.Nullable()
MethodParameters:
Name Flags
element
occurrences
public boolean removeExactly(java.lang.Object, int);
descriptor: (Ljava/lang/Object;I)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=6, args_size=3
start local 0 start local 1 start local 2 0: iload 2
ifne 2
1: iconst_1
ireturn
2: StackMap locals:
StackMap stack:
iload 2
ldc "occurences"
invokestatic com.google.common.collect.CollectPreconditions.checkPositive:(ILjava/lang/String;)V
3: aload 0
getfield com.google.common.collect.ConcurrentHashMultiset.countMap:Ljava/util/concurrent/ConcurrentMap;
aload 1
invokestatic com.google.common.collect.Maps.safeGet:(Ljava/util/Map;Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.concurrent.atomic.AtomicInteger
astore 3
start local 3 4: aload 3
ifnonnull 6
5: iconst_0
ireturn
6: StackMap locals: java.util.concurrent.atomic.AtomicInteger
StackMap stack:
aload 3
invokevirtual java.util.concurrent.atomic.AtomicInteger.get:()I
istore 4
start local 4 7: iload 4
iload 2
if_icmpge 9
8: iconst_0
ireturn
9: StackMap locals: int
StackMap stack:
iload 4
iload 2
isub
istore 5
start local 5 10: aload 3
iload 4
iload 5
invokevirtual java.util.concurrent.atomic.AtomicInteger.compareAndSet:(II)Z
ifeq 6
11: iload 5
ifne 13
12: aload 0
getfield com.google.common.collect.ConcurrentHashMultiset.countMap:Ljava/util/concurrent/ConcurrentMap;
aload 1
aload 3
invokeinterface java.util.concurrent.ConcurrentMap.remove:(Ljava/lang/Object;Ljava/lang/Object;)Z
pop
13: StackMap locals: int
StackMap stack:
iconst_1
ireturn
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lcom/google/common/collect/ConcurrentHashMultiset<TE;>;
0 14 1 element Ljava/lang/Object;
0 14 2 occurrences I
4 14 3 existingCounter Ljava/util/concurrent/atomic/AtomicInteger;
7 14 4 oldValue I
10 14 5 newValue I
RuntimeInvisibleAnnotations:
com.google.errorprone.annotations.CanIgnoreReturnValue()
RuntimeVisibleTypeAnnotations:
METHOD_FORMAL_PARAMETER
org.checkerframework.checker.nullness.qual.Nullable()
MethodParameters:
Name Flags
element
occurrences
public int setCount(E, );
descriptor: (Ljava/lang/Object;I)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokestatic com.google.common.base.Preconditions.checkNotNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: iload 2
ldc "count"
invokestatic com.google.common.collect.CollectPreconditions.checkNonnegative:(ILjava/lang/String;)I
pop
2: StackMap locals:
StackMap stack:
aload 0
getfield com.google.common.collect.ConcurrentHashMultiset.countMap:Ljava/util/concurrent/ConcurrentMap;
aload 1
invokestatic com.google.common.collect.Maps.safeGet:(Ljava/util/Map;Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.concurrent.atomic.AtomicInteger
astore 3
start local 3 3: aload 3
ifnonnull 9
4: iload 2
ifne 6
5: iconst_0
ireturn
6: StackMap locals: java.util.concurrent.atomic.AtomicInteger
StackMap stack:
aload 0
getfield com.google.common.collect.ConcurrentHashMultiset.countMap:Ljava/util/concurrent/ConcurrentMap;
aload 1
new java.util.concurrent.atomic.AtomicInteger
dup
iload 2
invokespecial java.util.concurrent.atomic.AtomicInteger.<init>:(I)V
invokeinterface java.util.concurrent.ConcurrentMap.putIfAbsent:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.concurrent.atomic.AtomicInteger
astore 3
7: aload 3
ifnonnull 9
8: iconst_0
ireturn
9: StackMap locals:
StackMap stack:
aload 3
invokevirtual java.util.concurrent.atomic.AtomicInteger.get:()I
istore 4
start local 4 10: iload 4
ifne 17
11: iload 2
ifne 13
12: iconst_0
ireturn
13: StackMap locals: int
StackMap stack:
new java.util.concurrent.atomic.AtomicInteger
dup
iload 2
invokespecial java.util.concurrent.atomic.AtomicInteger.<init>:(I)V
astore 5
start local 5 14: aload 0
getfield com.google.common.collect.ConcurrentHashMultiset.countMap:Ljava/util/concurrent/ConcurrentMap;
aload 1
aload 5
invokeinterface java.util.concurrent.ConcurrentMap.putIfAbsent:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
ifnull 16
15: aload 0
getfield com.google.common.collect.ConcurrentHashMultiset.countMap:Ljava/util/concurrent/ConcurrentMap;
aload 1
aload 3
aload 5
invokeinterface java.util.concurrent.ConcurrentMap.replace:(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Z
ifeq 2
16: StackMap locals: java.util.concurrent.atomic.AtomicInteger
StackMap stack:
iconst_0
ireturn
end local 5 17: StackMap locals:
StackMap stack:
aload 3
iload 4
iload 2
invokevirtual java.util.concurrent.atomic.AtomicInteger.compareAndSet:(II)Z
ifeq 9
18: iload 2
ifne 20
19: aload 0
getfield com.google.common.collect.ConcurrentHashMultiset.countMap:Ljava/util/concurrent/ConcurrentMap;
aload 1
aload 3
invokeinterface java.util.concurrent.ConcurrentMap.remove:(Ljava/lang/Object;Ljava/lang/Object;)Z
pop
20: StackMap locals:
StackMap stack:
iload 4
ireturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 21 0 this Lcom/google/common/collect/ConcurrentHashMultiset<TE;>;
0 21 1 element TE;
0 21 2 count I
3 21 3 existingCounter Ljava/util/concurrent/atomic/AtomicInteger;
10 21 4 oldValue I
14 17 5 newCounter Ljava/util/concurrent/atomic/AtomicInteger;
Signature: (TE;I)I
RuntimeInvisibleAnnotations:
com.google.errorprone.annotations.CanIgnoreReturnValue()
MethodParameters:
Name Flags
element
count
public boolean setCount(E, int, );
descriptor: (Ljava/lang/Object;II)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=7, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
invokestatic com.google.common.base.Preconditions.checkNotNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: iload 2
ldc "oldCount"
invokestatic com.google.common.collect.CollectPreconditions.checkNonnegative:(ILjava/lang/String;)I
pop
2: iload 3
ldc "newCount"
invokestatic com.google.common.collect.CollectPreconditions.checkNonnegative:(ILjava/lang/String;)I
pop
3: aload 0
getfield com.google.common.collect.ConcurrentHashMultiset.countMap:Ljava/util/concurrent/ConcurrentMap;
aload 1
invokestatic com.google.common.collect.Maps.safeGet:(Ljava/util/Map;Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.concurrent.atomic.AtomicInteger
astore 4
start local 4 4: aload 4
ifnonnull 11
5: iload 2
ifeq 7
6: iconst_0
ireturn
7: StackMap locals: java.util.concurrent.atomic.AtomicInteger
StackMap stack:
iload 3
ifne 9
8: iconst_1
ireturn
9: StackMap locals:
StackMap stack:
aload 0
getfield com.google.common.collect.ConcurrentHashMultiset.countMap:Ljava/util/concurrent/ConcurrentMap;
aload 1
new java.util.concurrent.atomic.AtomicInteger
dup
iload 3
invokespecial java.util.concurrent.atomic.AtomicInteger.<init>:(I)V
invokeinterface java.util.concurrent.ConcurrentMap.putIfAbsent:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
ifnonnull 10
iconst_1
ireturn
StackMap locals:
StackMap stack:
10: iconst_0
ireturn
11: StackMap locals:
StackMap stack:
aload 4
invokevirtual java.util.concurrent.atomic.AtomicInteger.get:()I
istore 5
start local 5 12: iload 5
iload 2
if_icmpne 26
13: iload 5
ifne 22
14: iload 3
ifne 17
15: aload 0
getfield com.google.common.collect.ConcurrentHashMultiset.countMap:Ljava/util/concurrent/ConcurrentMap;
aload 1
aload 4
invokeinterface java.util.concurrent.ConcurrentMap.remove:(Ljava/lang/Object;Ljava/lang/Object;)Z
pop
16: iconst_1
ireturn
17: StackMap locals: int
StackMap stack:
new java.util.concurrent.atomic.AtomicInteger
dup
iload 3
invokespecial java.util.concurrent.atomic.AtomicInteger.<init>:(I)V
astore 6
start local 6 18: aload 0
getfield com.google.common.collect.ConcurrentHashMultiset.countMap:Ljava/util/concurrent/ConcurrentMap;
aload 1
aload 6
invokeinterface java.util.concurrent.ConcurrentMap.putIfAbsent:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
ifnull 21
19: aload 0
getfield com.google.common.collect.ConcurrentHashMultiset.countMap:Ljava/util/concurrent/ConcurrentMap;
aload 1
aload 4
aload 6
invokeinterface java.util.concurrent.ConcurrentMap.replace:(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Z
ifne 21
20: iconst_0
ireturn
StackMap locals: java.util.concurrent.atomic.AtomicInteger
StackMap stack:
21: iconst_1
ireturn
end local 6 22: StackMap locals:
StackMap stack:
aload 4
iload 5
iload 3
invokevirtual java.util.concurrent.atomic.AtomicInteger.compareAndSet:(II)Z
ifeq 26
23: iload 3
ifne 25
24: aload 0
getfield com.google.common.collect.ConcurrentHashMultiset.countMap:Ljava/util/concurrent/ConcurrentMap;
aload 1
aload 4
invokeinterface java.util.concurrent.ConcurrentMap.remove:(Ljava/lang/Object;Ljava/lang/Object;)Z
pop
25: StackMap locals:
StackMap stack:
iconst_1
ireturn
26: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 27 0 this Lcom/google/common/collect/ConcurrentHashMultiset<TE;>;
0 27 1 element TE;
0 27 2 expectedOldCount I
0 27 3 newCount I
4 27 4 existingCounter Ljava/util/concurrent/atomic/AtomicInteger;
12 27 5 oldValue I
18 22 6 newCounter Ljava/util/concurrent/atomic/AtomicInteger;
Signature: (TE;II)Z
RuntimeInvisibleAnnotations:
com.google.errorprone.annotations.CanIgnoreReturnValue()
MethodParameters:
Name Flags
element
expectedOldCount
newCount
java.util.Set<E> createElementSet();
descriptor: ()Ljava/util/Set;
flags: (0x0000)
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
getfield com.google.common.collect.ConcurrentHashMultiset.countMap:Ljava/util/concurrent/ConcurrentMap;
invokeinterface java.util.concurrent.ConcurrentMap.keySet:()Ljava/util/Set;
astore 1
start local 1 1: new com.google.common.collect.ConcurrentHashMultiset$1
dup
aload 0
aload 1
invokespecial com.google.common.collect.ConcurrentHashMultiset$1.<init>:(Lcom/google/common/collect/ConcurrentHashMultiset;Ljava/util/Set;)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/google/common/collect/ConcurrentHashMultiset<TE;>;
1 2 1 delegate Ljava/util/Set<TE;>;
Signature: ()Ljava/util/Set<TE;>;
java.util.Iterator<E> elementIterator();
descriptor: ()Ljava/util/Iterator;
flags: (0x0000)
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.AssertionError
dup
ldc "should never be called"
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/google/common/collect/ConcurrentHashMultiset<TE;>;
Signature: ()Ljava/util/Iterator<TE;>;
public java.util.Set<com.google.common.collect.Multiset$Entry<E>> createEntrySet();
descriptor: ()Ljava/util/Set;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new com.google.common.collect.ConcurrentHashMultiset$EntrySet
dup
aload 0
invokespecial com.google.common.collect.ConcurrentHashMultiset$EntrySet.<init>:(Lcom/google/common/collect/ConcurrentHashMultiset;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/google/common/collect/ConcurrentHashMultiset<TE;>;
Signature: ()Ljava/util/Set<Lcom/google/common/collect/Multiset$Entry<TE;>;>;
RuntimeVisibleAnnotations:
java.lang.Deprecated()
int distinctElements();
descriptor: ()I
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.google.common.collect.ConcurrentHashMultiset.countMap:Ljava/util/concurrent/ConcurrentMap;
invokeinterface java.util.concurrent.ConcurrentMap.size:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/google/common/collect/ConcurrentHashMultiset<TE;>;
public boolean isEmpty();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.google.common.collect.ConcurrentHashMultiset.countMap:Ljava/util/concurrent/ConcurrentMap;
invokeinterface java.util.concurrent.ConcurrentMap.isEmpty:()Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/google/common/collect/ConcurrentHashMultiset<TE;>;
java.util.Iterator<com.google.common.collect.Multiset$Entry<E>> entryIterator();
descriptor: ()Ljava/util/Iterator;
flags: (0x0000)
Code:
stack=4, locals=2, args_size=1
start local 0 0: new com.google.common.collect.ConcurrentHashMultiset$2
dup
aload 0
invokespecial com.google.common.collect.ConcurrentHashMultiset$2.<init>:(Lcom/google/common/collect/ConcurrentHashMultiset;)V
1: astore 1
start local 1 2: new com.google.common.collect.ConcurrentHashMultiset$3
dup
aload 0
aload 1
invokespecial com.google.common.collect.ConcurrentHashMultiset$3.<init>:(Lcom/google/common/collect/ConcurrentHashMultiset;Ljava/util/Iterator;)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/google/common/collect/ConcurrentHashMultiset<TE;>;
2 3 1 readOnlyIterator Ljava/util/Iterator<Lcom/google/common/collect/Multiset$Entry<TE;>;>;
Signature: ()Ljava/util/Iterator<Lcom/google/common/collect/Multiset$Entry<TE;>;>;
public java.util.Iterator<E> iterator();
descriptor: ()Ljava/util/Iterator;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokestatic com.google.common.collect.Multisets.iteratorImpl:(Lcom/google/common/collect/Multiset;)Ljava/util/Iterator;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/google/common/collect/ConcurrentHashMultiset<TE;>;
Signature: ()Ljava/util/Iterator<TE;>;
public void clear();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.google.common.collect.ConcurrentHashMultiset.countMap:Ljava/util/concurrent/ConcurrentMap;
invokeinterface java.util.concurrent.ConcurrentMap.clear:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/google/common/collect/ConcurrentHashMultiset<TE;>;
private void writeObject(java.io.ObjectOutputStream);
descriptor: (Ljava/io/ObjectOutputStream;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual java.io.ObjectOutputStream.defaultWriteObject:()V
1: aload 1
aload 0
getfield com.google.common.collect.ConcurrentHashMultiset.countMap:Ljava/util/concurrent/ConcurrentMap;
invokevirtual java.io.ObjectOutputStream.writeObject:(Ljava/lang/Object;)V
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/google/common/collect/ConcurrentHashMultiset<TE;>;
0 3 1 stream Ljava/io/ObjectOutputStream;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
stream
private void readObject(java.io.ObjectInputStream);
descriptor: (Ljava/io/ObjectInputStream;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual java.io.ObjectInputStream.defaultReadObject:()V
1: aload 1
invokevirtual java.io.ObjectInputStream.readObject:()Ljava/lang/Object;
checkcast java.util.concurrent.ConcurrentMap
2: astore 2
start local 2 3: getstatic com.google.common.collect.ConcurrentHashMultiset$FieldSettersHolder.COUNT_MAP_FIELD_SETTER:Lcom/google/common/collect/Serialization$FieldSetter;
aload 0
aload 2
invokevirtual com.google.common.collect.Serialization$FieldSetter.set:(Ljava/lang/Object;Ljava/lang/Object;)V
4: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/google/common/collect/ConcurrentHashMultiset<TE;>;
0 5 1 stream Ljava/io/ObjectInputStream;
3 5 2 deserializedCountMap Ljava/util/concurrent/ConcurrentMap<TE;Ljava/lang/Integer;>;
Exceptions:
throws java.io.IOException, java.lang.ClassNotFoundException
MethodParameters:
Name Flags
stream
public boolean contains(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
0: aload 0
aload 1
invokespecial com.google.common.collect.AbstractMultiset.contains:(Ljava/lang/Object;)Z
ireturn
LocalVariableTable:
Start End Slot Name Signature
public java.util.Set entrySet();
descriptor: ()Ljava/util/Set;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
0: aload 0
invokespecial com.google.common.collect.AbstractMultiset.entrySet:()Ljava/util/Set;
areturn
LocalVariableTable:
Start End Slot Name Signature
public java.util.Set elementSet();
descriptor: ()Ljava/util/Set;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
0: aload 0
invokespecial com.google.common.collect.AbstractMultiset.elementSet:()Ljava/util/Set;
areturn
LocalVariableTable:
Start End Slot Name Signature
}
Signature: <E:Ljava/lang/Object;>Lcom/google/common/collect/AbstractMultiset<TE;>;Ljava/io/Serializable;
SourceFile: "ConcurrentHashMultiset.java"
NestMembers:
com.google.common.collect.ConcurrentHashMultiset$1 com.google.common.collect.ConcurrentHashMultiset$2 com.google.common.collect.ConcurrentHashMultiset$3 com.google.common.collect.ConcurrentHashMultiset$EntrySet com.google.common.collect.ConcurrentHashMultiset$FieldSettersHolder
InnerClasses:
com.google.common.collect.ConcurrentHashMultiset$1
com.google.common.collect.ConcurrentHashMultiset$2
com.google.common.collect.ConcurrentHashMultiset$3
private EntrySet = com.google.common.collect.ConcurrentHashMultiset$EntrySet of com.google.common.collect.ConcurrentHashMultiset
private FieldSettersHolder = com.google.common.collect.ConcurrentHashMultiset$FieldSettersHolder of com.google.common.collect.ConcurrentHashMultiset
public abstract Entry = com.google.common.collect.Multiset$Entry of com.google.common.collect.Multiset
final FieldSetter = com.google.common.collect.Serialization$FieldSetter of com.google.common.collect.Serialization
RuntimeInvisibleAnnotations:
com.google.common.annotations.GwtIncompatible()