abstract class com.google.common.collect.AbstractMapBasedMultiset<E> extends com.google.common.collect.AbstractMultiset<E> implements java.io.Serializable
minor version: 0
major version: 59
flags: flags: (0x0420) ACC_SUPER, ACC_ABSTRACT
this_class: com.google.common.collect.AbstractMapBasedMultiset
super_class: com.google.common.collect.AbstractMultiset
{
private transient java.util.Map<E, com.google.common.collect.Count> backingMap;
descriptor: Ljava/util/Map;
flags: (0x0082) ACC_PRIVATE, ACC_TRANSIENT
Signature: Ljava/util/Map<TE;Lcom/google/common/collect/Count;>;
private transient long size;
descriptor: J
flags: (0x0082) ACC_PRIVATE, ACC_TRANSIENT
private static final long serialVersionUID;
descriptor: J
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: -2250766705698539974
RuntimeInvisibleAnnotations:
com.google.common.annotations.GwtIncompatible()
protected void <init>(java.util.Map<E, com.google.common.collect.Count>);
descriptor: (Ljava/util/Map;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, 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.Map.isEmpty:()Z
invokestatic com.google.common.base.Preconditions.checkArgument:(Z)V
2: aload 0
aload 1
putfield com.google.common.collect.AbstractMapBasedMultiset.backingMap:Ljava/util/Map;
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/google/common/collect/AbstractMapBasedMultiset<TE;>;
0 4 1 backingMap Ljava/util/Map<TE;Lcom/google/common/collect/Count;>;
Signature: (Ljava/util/Map<TE;Lcom/google/common/collect/Count;>;)V
MethodParameters:
Name Flags
backingMap
void setBackingMap(java.util.Map<E, com.google.common.collect.Count>);
descriptor: (Ljava/util/Map;)V
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield com.google.common.collect.AbstractMapBasedMultiset.backingMap:Ljava/util/Map;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/google/common/collect/AbstractMapBasedMultiset<TE;>;
0 2 1 backingMap Ljava/util/Map<TE;Lcom/google/common/collect/Count;>;
Signature: (Ljava/util/Map<TE;Lcom/google/common/collect/Count;>;)V
MethodParameters:
Name Flags
backingMap
public java.util.Set<com.google.common.collect.Multiset$Entry<E>> entrySet();
descriptor: ()Ljava/util/Set;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial com.google.common.collect.AbstractMultiset.entrySet:()Ljava/util/Set;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/google/common/collect/AbstractMapBasedMultiset<TE;>;
Signature: ()Ljava/util/Set<Lcom/google/common/collect/Multiset$Entry<TE;>;>;
java.util.Iterator<E> elementIterator();
descriptor: ()Ljava/util/Iterator;
flags: (0x0000)
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
getfield com.google.common.collect.AbstractMapBasedMultiset.backingMap:Ljava/util/Map;
invokeinterface java.util.Map.entrySet:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 1
start local 1 1: new com.google.common.collect.AbstractMapBasedMultiset$1
dup
aload 0
aload 1
invokespecial com.google.common.collect.AbstractMapBasedMultiset$1.<init>:(Lcom/google/common/collect/AbstractMapBasedMultiset;Ljava/util/Iterator;)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/google/common/collect/AbstractMapBasedMultiset<TE;>;
1 2 1 backingEntries Ljava/util/Iterator<Ljava/util/Map$Entry<TE;Lcom/google/common/collect/Count;>;>;
Signature: ()Ljava/util/Iterator<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: aload 0
getfield com.google.common.collect.AbstractMapBasedMultiset.backingMap:Ljava/util/Map;
invokeinterface java.util.Map.entrySet:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 1
start local 1 1: new com.google.common.collect.AbstractMapBasedMultiset$2
dup
aload 0
aload 1
invokespecial com.google.common.collect.AbstractMapBasedMultiset$2.<init>:(Lcom/google/common/collect/AbstractMapBasedMultiset;Ljava/util/Iterator;)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/google/common/collect/AbstractMapBasedMultiset<TE;>;
1 2 1 backingEntries Ljava/util/Iterator<Ljava/util/Map$Entry<TE;Lcom/google/common/collect/Count;>;>;
Signature: ()Ljava/util/Iterator<Lcom/google/common/collect/Multiset$Entry<TE;>;>;
public void forEachEntry(java.util.function.ObjIntConsumer<? super E>);
descriptor: (Ljava/util/function/ObjIntConsumer;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokestatic com.google.common.base.Preconditions.checkNotNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: aload 0
getfield com.google.common.collect.AbstractMapBasedMultiset.backingMap:Ljava/util/Map;
aload 1
invokedynamic accept(Ljava/util/function/ObjIntConsumer;)Ljava/util/function/BiConsumer;
Bootstrap: invokestatic 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;
Method arguments:
(Ljava/lang/Object;Ljava/lang/Object;)V
com/google/common/collect/AbstractMapBasedMultiset.lambda$0(Ljava/util/function/ObjIntConsumer;Ljava/lang/Object;Lcom/google/common/collect/Count;)V (6)
(Ljava/lang/Object;Lcom/google/common/collect/Count;)V
invokeinterface java.util.Map.forEach:(Ljava/util/function/BiConsumer;)V
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/google/common/collect/AbstractMapBasedMultiset<TE;>;
0 3 1 action Ljava/util/function/ObjIntConsumer<-TE;>;
Signature: (Ljava/util/function/ObjIntConsumer<-TE;>;)V
MethodParameters:
Name Flags
action
public void clear();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=1
start local 0 0: aload 0
getfield com.google.common.collect.AbstractMapBasedMultiset.backingMap:Ljava/util/Map;
invokeinterface java.util.Map.values:()Ljava/util/Collection;
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 2
goto 3
StackMap locals: com.google.common.collect.AbstractMapBasedMultiset top java.util.Iterator
StackMap stack:
1: aload 2
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast com.google.common.collect.Count
astore 1
start local 1 2: aload 1
iconst_0
invokevirtual com.google.common.collect.Count.set:(I)V
end local 1 3: StackMap locals:
StackMap stack:
aload 2
invokeinterface java.util.Iterator.hasNext:()Z
ifne 1
4: aload 0
getfield com.google.common.collect.AbstractMapBasedMultiset.backingMap:Ljava/util/Map;
invokeinterface java.util.Map.clear:()V
5: aload 0
lconst_0
putfield com.google.common.collect.AbstractMapBasedMultiset.size:J
6: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lcom/google/common/collect/AbstractMapBasedMultiset<TE;>;
2 3 1 frequency Lcom/google/common/collect/Count;
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.AbstractMapBasedMultiset.backingMap:Ljava/util/Map;
invokeinterface java.util.Map.size:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/google/common/collect/AbstractMapBasedMultiset<TE;>;
public int size();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield com.google.common.collect.AbstractMapBasedMultiset.size:J
invokestatic com.google.common.primitives.Ints.saturatedCast:(J)I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/google/common/collect/AbstractMapBasedMultiset<TE;>;
public java.util.Iterator<E> iterator();
descriptor: ()Ljava/util/Iterator;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new com.google.common.collect.AbstractMapBasedMultiset$MapBasedMultisetIterator
dup
aload 0
invokespecial com.google.common.collect.AbstractMapBasedMultiset$MapBasedMultisetIterator.<init>:(Lcom/google/common/collect/AbstractMapBasedMultiset;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/google/common/collect/AbstractMapBasedMultiset<TE;>;
Signature: ()Ljava/util/Iterator<TE;>;
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.AbstractMapBasedMultiset.backingMap:Ljava/util/Map;
aload 1
invokestatic com.google.common.collect.Maps.safeGet:(Ljava/util/Map;Ljava/lang/Object;)Ljava/lang/Object;
checkcast com.google.common.collect.Count
astore 2
start local 2 1: aload 2
ifnonnull 2
iconst_0
goto 3
StackMap locals: com.google.common.collect.Count
StackMap stack:
2: aload 2
invokevirtual com.google.common.collect.Count.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/AbstractMapBasedMultiset<TE;>;
0 4 1 element Ljava/lang/Object;
1 4 2 frequency Lcom/google/common/collect/Count;
RuntimeVisibleTypeAnnotations:
METHOD_FORMAL_PARAMETER
org.checkerframework.checker.nullness.qual.Nullable()
MethodParameters:
Name Flags
element
public int add(E, );
descriptor: (Ljava/lang/Object;I)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=7, 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.AbstractMapBasedMultiset.count:(Ljava/lang/Object;)I
ireturn
2: StackMap locals:
StackMap stack:
iload 2
ifle 3
iconst_1
goto 4
StackMap locals:
StackMap stack:
3: iconst_0
StackMap locals:
StackMap stack: int
4: ldc "occurrences cannot be negative: %s"
iload 2
invokestatic com.google.common.base.Preconditions.checkArgument:(ZLjava/lang/String;I)V
5: aload 0
getfield com.google.common.collect.AbstractMapBasedMultiset.backingMap:Ljava/util/Map;
aload 1
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast com.google.common.collect.Count
astore 3
start local 3 6: aload 3
ifnonnull 10
7: iconst_0
istore 4
start local 4 8: aload 0
getfield com.google.common.collect.AbstractMapBasedMultiset.backingMap:Ljava/util/Map;
aload 1
new com.google.common.collect.Count
dup
iload 2
invokespecial com.google.common.collect.Count.<init>:(I)V
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
9: goto 16
end local 4 10: StackMap locals: com.google.common.collect.Count
StackMap stack:
aload 3
invokevirtual com.google.common.collect.Count.get:()I
istore 4
start local 4 11: iload 4
i2l
iload 2
i2l
ladd
lstore 5
start local 5 12: lload 5
ldc 2147483647
lcmp
ifgt 13
iconst_1
goto 14
StackMap locals: int long
StackMap stack:
13: iconst_0
StackMap locals:
StackMap stack: int
14: ldc "too many occurrences: %s"
lload 5
invokestatic com.google.common.base.Preconditions.checkArgument:(ZLjava/lang/String;J)V
15: aload 3
iload 2
invokevirtual com.google.common.collect.Count.add:(I)V
end local 5 16: StackMap locals:
StackMap stack:
aload 0
dup
getfield com.google.common.collect.AbstractMapBasedMultiset.size:J
iload 2
i2l
ladd
putfield com.google.common.collect.AbstractMapBasedMultiset.size:J
17: 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 18 0 this Lcom/google/common/collect/AbstractMapBasedMultiset<TE;>;
0 18 1 element TE;
0 18 2 occurrences I
6 18 3 frequency Lcom/google/common/collect/Count;
8 10 4 oldCount I
11 18 4 oldCount I
12 16 5 newCount J
Signature: (TE;I)I
RuntimeInvisibleAnnotations:
com.google.errorprone.annotations.CanIgnoreReturnValue()
RuntimeVisibleTypeAnnotations:
METHOD_FORMAL_PARAMETER
org.checkerframework.checker.nullness.qual.Nullable()
MethodParameters:
Name Flags
element
occurrences
public int remove(java.lang.Object, int);
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: iload 2
ifne 2
1: aload 0
aload 1
invokevirtual com.google.common.collect.AbstractMapBasedMultiset.count:(Ljava/lang/Object;)I
ireturn
2: StackMap locals:
StackMap stack:
iload 2
ifle 3
iconst_1
goto 4
StackMap locals:
StackMap stack:
3: iconst_0
StackMap locals:
StackMap stack: int
4: ldc "occurrences cannot be negative: %s"
iload 2
invokestatic com.google.common.base.Preconditions.checkArgument:(ZLjava/lang/String;I)V
5: aload 0
getfield com.google.common.collect.AbstractMapBasedMultiset.backingMap:Ljava/util/Map;
aload 1
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast com.google.common.collect.Count
astore 3
start local 3 6: aload 3
ifnonnull 8
7: iconst_0
ireturn
8: StackMap locals: com.google.common.collect.Count
StackMap stack:
aload 3
invokevirtual com.google.common.collect.Count.get:()I
istore 4
start local 4 9: iload 4
iload 2
if_icmple 12
10: iload 2
istore 5
start local 5 11: goto 14
end local 5 12: StackMap locals: int
StackMap stack:
iload 4
istore 5
start local 5 13: aload 0
getfield com.google.common.collect.AbstractMapBasedMultiset.backingMap:Ljava/util/Map;
aload 1
invokeinterface java.util.Map.remove:(Ljava/lang/Object;)Ljava/lang/Object;
pop
14: StackMap locals: int
StackMap stack:
aload 3
iload 5
ineg
invokevirtual com.google.common.collect.Count.add:(I)V
15: aload 0
dup
getfield com.google.common.collect.AbstractMapBasedMultiset.size:J
iload 5
i2l
lsub
putfield com.google.common.collect.AbstractMapBasedMultiset.size:J
16: iload 4
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 17 0 this Lcom/google/common/collect/AbstractMapBasedMultiset<TE;>;
0 17 1 element Ljava/lang/Object;
0 17 2 occurrences I
6 17 3 frequency Lcom/google/common/collect/Count;
9 17 4 oldCount I
11 12 5 numberRemoved I
13 17 5 numberRemoved 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=5, args_size=3
start local 0 start local 1 start local 2 0: iload 2
ldc "count"
invokestatic com.google.common.collect.CollectPreconditions.checkNonnegative:(ILjava/lang/String;)I
pop
1: iload 2
ifne 5
2: aload 0
getfield com.google.common.collect.AbstractMapBasedMultiset.backingMap:Ljava/util/Map;
aload 1
invokeinterface java.util.Map.remove:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast com.google.common.collect.Count
astore 3
start local 3 3: aload 3
iload 2
invokestatic com.google.common.collect.AbstractMapBasedMultiset.getAndSet:(Lcom/google/common/collect/Count;I)I
istore 4
start local 4 4: goto 9
end local 4 end local 3 5: StackMap locals:
StackMap stack:
aload 0
getfield com.google.common.collect.AbstractMapBasedMultiset.backingMap:Ljava/util/Map;
aload 1
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast com.google.common.collect.Count
astore 3
start local 3 6: aload 3
iload 2
invokestatic com.google.common.collect.AbstractMapBasedMultiset.getAndSet:(Lcom/google/common/collect/Count;I)I
istore 4
start local 4 7: aload 3
ifnonnull 9
8: aload 0
getfield com.google.common.collect.AbstractMapBasedMultiset.backingMap:Ljava/util/Map;
aload 1
new com.google.common.collect.Count
dup
iload 2
invokespecial com.google.common.collect.Count.<init>:(I)V
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
9: StackMap locals: com.google.common.collect.Count int
StackMap stack:
aload 0
dup
getfield com.google.common.collect.AbstractMapBasedMultiset.size:J
iload 2
iload 4
isub
i2l
ladd
putfield com.google.common.collect.AbstractMapBasedMultiset.size:J
10: 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 11 0 this Lcom/google/common/collect/AbstractMapBasedMultiset<TE;>;
0 11 1 element TE;
0 11 2 count I
3 5 3 existingCounter Lcom/google/common/collect/Count;
6 11 3 existingCounter Lcom/google/common/collect/Count;
4 5 4 oldCount I
7 11 4 oldCount I
Signature: (TE;I)I
RuntimeInvisibleAnnotations:
com.google.errorprone.annotations.CanIgnoreReturnValue()
RuntimeVisibleTypeAnnotations:
METHOD_FORMAL_PARAMETER
org.checkerframework.checker.nullness.qual.Nullable()
MethodParameters:
Name Flags
element
count
private static int getAndSet(com.google.common.collect.Count, int);
descriptor: (Lcom/google/common/collect/Count;I)I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
ifnonnull 2
1: iconst_0
ireturn
2: StackMap locals:
StackMap stack:
aload 0
iload 1
invokevirtual com.google.common.collect.Count.getAndSet:(I)I
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 i Lcom/google/common/collect/Count;
0 3 1 count I
RuntimeVisibleTypeAnnotations:
METHOD_FORMAL_PARAMETER
org.checkerframework.checker.nullness.qual.Nullable()
MethodParameters:
Name Flags
i
count
private void readObjectNoData();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.io.InvalidObjectException
dup
ldc "Stream data required"
invokespecial java.io.InvalidObjectException.<init>:(Ljava/lang/String;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/google/common/collect/AbstractMapBasedMultiset<TE;>;
Exceptions:
throws java.io.ObjectStreamException
RuntimeInvisibleAnnotations:
com.google.common.annotations.GwtIncompatible()
private static void lambda$0(java.util.function.ObjIntConsumer, java.lang.Object, com.google.common.collect.Count);
descriptor: (Ljava/util/function/ObjIntConsumer;Ljava/lang/Object;Lcom/google/common/collect/Count;)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=3, args_size=3
start local 1 start local 2 0: aload 0
aload 1
aload 2
invokevirtual com.google.common.collect.Count.get:()I
invokeinterface java.util.function.ObjIntConsumer.accept:(Ljava/lang/Object;I)V
return
end local 2 end local 1 LocalVariableTable:
Start End Slot Name Signature
0 1 1 element TE;
0 1 2 count Lcom/google/common/collect/Count;
}
Signature: <E:Ljava/lang/Object;>Lcom/google/common/collect/AbstractMultiset<TE;>;Ljava/io/Serializable;
SourceFile: "AbstractMapBasedMultiset.java"
NestMembers:
com.google.common.collect.AbstractMapBasedMultiset$1 com.google.common.collect.AbstractMapBasedMultiset$2 com.google.common.collect.AbstractMapBasedMultiset$2$1 com.google.common.collect.AbstractMapBasedMultiset$MapBasedMultisetIterator
InnerClasses:
com.google.common.collect.AbstractMapBasedMultiset$1
com.google.common.collect.AbstractMapBasedMultiset$2
private MapBasedMultisetIterator = com.google.common.collect.AbstractMapBasedMultiset$MapBasedMultisetIterator of com.google.common.collect.AbstractMapBasedMultiset
public abstract Entry = com.google.common.collect.Multiset$Entry of com.google.common.collect.Multiset
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
public abstract Entry = java.util.Map$Entry of java.util.Map
RuntimeInvisibleAnnotations:
com.google.common.annotations.GwtCompatible(emulated = true)