final class com.google.common.collect.ImmutableEnumMap<K extends java.lang.Enum<K>, V> extends com.google.common.collect.ImmutableMap$IteratorBasedImmutableMap<K, V>
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: com.google.common.collect.ImmutableEnumMap
super_class: com.google.common.collect.ImmutableMap$IteratorBasedImmutableMap
{
private final transient java.util.EnumMap<K, V> delegate;
descriptor: Ljava/util/EnumMap;
flags: (0x0092) ACC_PRIVATE, ACC_FINAL, ACC_TRANSIENT
Signature: Ljava/util/EnumMap<TK;TV;>;
static <K extends java.lang.Enum<K>, V> com.google.common.collect.ImmutableMap<K, V> asImmutable(java.util.EnumMap<K, V>);
descriptor: (Ljava/util/EnumMap;)Lcom/google/common/collect/ImmutableMap;
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual java.util.EnumMap.size:()I
tableswitch { // 0 - 1
0: 1
1: 2
default: 4
}
1: StackMap locals:
StackMap stack:
invokestatic com.google.common.collect.ImmutableMap.of:()Lcom/google/common/collect/ImmutableMap;
areturn
2: StackMap locals:
StackMap stack:
aload 0
invokevirtual java.util.EnumMap.entrySet:()Ljava/util/Set;
invokestatic com.google.common.collect.Iterables.getOnlyElement:(Ljava/lang/Iterable;)Ljava/lang/Object;
checkcast java.util.Map$Entry
astore 1
start local 1 3: aload 1
invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
checkcast java.lang.Enum
aload 1
invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
invokestatic com.google.common.collect.ImmutableMap.of:(Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/collect/ImmutableMap;
areturn
end local 1 4: StackMap locals:
StackMap stack:
new com.google.common.collect.ImmutableEnumMap
dup
aload 0
invokespecial com.google.common.collect.ImmutableEnumMap.<init>:(Ljava/util/EnumMap;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 map Ljava/util/EnumMap<TK;TV;>;
3 4 1 entry Ljava/util/Map$Entry<TK;TV;>;
Signature: <K:Ljava/lang/Enum<TK;>;V:Ljava/lang/Object;>(Ljava/util/EnumMap<TK;TV;>;)Lcom/google/common/collect/ImmutableMap<TK;TV;>;
MethodParameters:
Name Flags
map
private void <init>(java.util.EnumMap<K, V>);
descriptor: (Ljava/util/EnumMap;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial com.google.common.collect.ImmutableMap$IteratorBasedImmutableMap.<init>:()V
1: aload 0
aload 1
putfield com.google.common.collect.ImmutableEnumMap.delegate:Ljava/util/EnumMap;
2: aload 1
invokevirtual java.util.EnumMap.isEmpty:()Z
ifeq 3
iconst_0
goto 4
StackMap locals: com.google.common.collect.ImmutableEnumMap java.util.EnumMap
StackMap stack:
3: iconst_1
StackMap locals:
StackMap stack: int
4: invokestatic com.google.common.base.Preconditions.checkArgument:(Z)V
5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lcom/google/common/collect/ImmutableEnumMap<TK;TV;>;
0 6 1 delegate Ljava/util/EnumMap<TK;TV;>;
Signature: (Ljava/util/EnumMap<TK;TV;>;)V
MethodParameters:
Name Flags
delegate
com.google.common.collect.UnmodifiableIterator<K> keyIterator();
descriptor: ()Lcom/google/common/collect/UnmodifiableIterator;
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.google.common.collect.ImmutableEnumMap.delegate:Ljava/util/EnumMap;
invokevirtual java.util.EnumMap.keySet:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
invokestatic com.google.common.collect.Iterators.unmodifiableIterator:(Ljava/util/Iterator;)Lcom/google/common/collect/UnmodifiableIterator;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/google/common/collect/ImmutableEnumMap<TK;TV;>;
Signature: ()Lcom/google/common/collect/UnmodifiableIterator<TK;>;
java.util.Spliterator<K> keySpliterator();
descriptor: ()Ljava/util/Spliterator;
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.google.common.collect.ImmutableEnumMap.delegate:Ljava/util/EnumMap;
invokevirtual java.util.EnumMap.keySet:()Ljava/util/Set;
invokeinterface java.util.Set.spliterator:()Ljava/util/Spliterator;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/google/common/collect/ImmutableEnumMap<TK;TV;>;
Signature: ()Ljava/util/Spliterator<TK;>;
public int size();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.google.common.collect.ImmutableEnumMap.delegate:Ljava/util/EnumMap;
invokevirtual java.util.EnumMap.size:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/google/common/collect/ImmutableEnumMap<TK;TV;>;
public boolean containsKey(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield com.google.common.collect.ImmutableEnumMap.delegate:Ljava/util/EnumMap;
aload 1
invokevirtual java.util.EnumMap.containsKey:(Ljava/lang/Object;)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/google/common/collect/ImmutableEnumMap<TK;TV;>;
0 1 1 key Ljava/lang/Object;
RuntimeVisibleTypeAnnotations:
METHOD_FORMAL_PARAMETER
org.checkerframework.checker.nullness.qual.Nullable()
MethodParameters:
Name Flags
key
public V get();
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
getfield com.google.common.collect.ImmutableEnumMap.delegate:Ljava/util/EnumMap;
aload 1
invokevirtual java.util.EnumMap.get:(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/ImmutableEnumMap<TK;TV;>;
0 1 1 key Ljava/lang/Object;
Signature: (Ljava/lang/Object;)TV;
MethodParameters:
Name Flags
key
public boolean equals(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
aload 0
if_acmpne 2
1: iconst_1
ireturn
2: StackMap locals:
StackMap stack:
aload 1
instanceof com.google.common.collect.ImmutableEnumMap
ifeq 4
3: aload 1
checkcast com.google.common.collect.ImmutableEnumMap
getfield com.google.common.collect.ImmutableEnumMap.delegate:Ljava/util/EnumMap;
astore 1
4: StackMap locals:
StackMap stack:
aload 0
getfield com.google.common.collect.ImmutableEnumMap.delegate:Ljava/util/EnumMap;
aload 1
invokevirtual java.util.EnumMap.equals:(Ljava/lang/Object;)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/google/common/collect/ImmutableEnumMap<TK;TV;>;
0 5 1 object Ljava/lang/Object;
MethodParameters:
Name Flags
object
com.google.common.collect.UnmodifiableIterator<java.util.Map$Entry<K, V>> entryIterator();
descriptor: ()Lcom/google/common/collect/UnmodifiableIterator;
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.google.common.collect.ImmutableEnumMap.delegate:Ljava/util/EnumMap;
invokevirtual java.util.EnumMap.entrySet:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
invokestatic com.google.common.collect.Maps.unmodifiableEntryIterator:(Ljava/util/Iterator;)Lcom/google/common/collect/UnmodifiableIterator;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/google/common/collect/ImmutableEnumMap<TK;TV;>;
Signature: ()Lcom/google/common/collect/UnmodifiableIterator<Ljava/util/Map$Entry<TK;TV;>;>;
java.util.Spliterator<java.util.Map$Entry<K, V>> entrySpliterator();
descriptor: ()Ljava/util/Spliterator;
flags: (0x0000)
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield com.google.common.collect.ImmutableEnumMap.delegate:Ljava/util/EnumMap;
invokevirtual java.util.EnumMap.entrySet:()Ljava/util/Set;
invokeinterface java.util.Set.spliterator:()Ljava/util/Spliterator;
invokedynamic apply()Ljava/util/function/Function;
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;
com/google/common/collect/Maps.unmodifiableEntry(Ljava/util/Map$Entry;)Ljava/util/Map$Entry; (6)
(Ljava/util/Map$Entry;)Ljava/util/Map$Entry;
invokestatic com.google.common.collect.CollectSpliterators.map:(Ljava/util/Spliterator;Ljava/util/function/Function;)Ljava/util/Spliterator;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/google/common/collect/ImmutableEnumMap<TK;TV;>;
Signature: ()Ljava/util/Spliterator<Ljava/util/Map$Entry<TK;TV;>;>;
public void forEach(java.util.function.BiConsumer<? super K, ? super V>);
descriptor: (Ljava/util/function/BiConsumer;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield com.google.common.collect.ImmutableEnumMap.delegate:Ljava/util/EnumMap;
aload 1
invokevirtual java.util.EnumMap.forEach:(Ljava/util/function/BiConsumer;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/google/common/collect/ImmutableEnumMap<TK;TV;>;
0 2 1 action Ljava/util/function/BiConsumer<-TK;-TV;>;
Signature: (Ljava/util/function/BiConsumer<-TK;-TV;>;)V
MethodParameters:
Name Flags
action
boolean isPartialView();
descriptor: ()Z
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/google/common/collect/ImmutableEnumMap<TK;TV;>;
java.lang.Object writeReplace();
descriptor: ()Ljava/lang/Object;
flags: (0x0000)
Code:
stack=3, locals=1, args_size=1
start local 0 0: new com.google.common.collect.ImmutableEnumMap$EnumSerializedForm
dup
aload 0
getfield com.google.common.collect.ImmutableEnumMap.delegate:Ljava/util/EnumMap;
invokespecial com.google.common.collect.ImmutableEnumMap$EnumSerializedForm.<init>:(Ljava/util/EnumMap;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/google/common/collect/ImmutableEnumMap<TK;TV;>;
}
Signature: <K:Ljava/lang/Enum<TK;>;V:Ljava/lang/Object;>Lcom/google/common/collect/ImmutableMap$IteratorBasedImmutableMap<TK;TV;>;
SourceFile: "ImmutableEnumMap.java"
NestMembers:
com.google.common.collect.ImmutableEnumMap$EnumSerializedForm
InnerClasses:
private EnumSerializedForm = com.google.common.collect.ImmutableEnumMap$EnumSerializedForm of com.google.common.collect.ImmutableEnumMap
abstract IteratorBasedImmutableMap = com.google.common.collect.ImmutableMap$IteratorBasedImmutableMap of com.google.common.collect.ImmutableMap
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(serializable = true, emulated = true)