public final class org.xnio.OptionMap implements java.lang.Iterable<org.xnio.Option<?>>, java.io.Serializable
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: org.xnio.OptionMap
super_class: java.lang.Object
{
private static final long serialVersionUID;
descriptor: J
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 3632842565346928132
private final java.util.Map<org.xnio.Option<?>, java.lang.Object> value;
descriptor: Ljava/util/Map;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Map<Lorg/xnio/Option<*>;Ljava/lang/Object;>;
public static final org.xnio.OptionMap EMPTY;
descriptor: Lorg/xnio/OptionMap;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=0, args_size=0
0: new org.xnio.OptionMap
dup
invokestatic java.util.Collections.emptyMap:()Ljava/util/Map;
invokespecial org.xnio.OptionMap.<init>:(Ljava/util/Map;)V
putstatic org.xnio.OptionMap.EMPTY:Lorg/xnio/OptionMap;
return
LocalVariableTable:
Start End Slot Name Signature
private void <init>(java.util.Map<org.xnio.Option<?>, java.lang.Object>);
descriptor: (Ljava/util/Map;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield org.xnio.OptionMap.value:Ljava/util/Map;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/xnio/OptionMap;
0 3 1 value Ljava/util/Map<Lorg/xnio/Option<*>;Ljava/lang/Object;>;
Signature: (Ljava/util/Map<Lorg/xnio/Option<*>;Ljava/lang/Object;>;)V
MethodParameters:
Name Flags
value final
public boolean contains(org.xnio.Option<?>);
descriptor: (Lorg/xnio/Option;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.xnio.OptionMap.value:Ljava/util/Map;
aload 1
invokeinterface java.util.Map.containsKey:(Ljava/lang/Object;)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/xnio/OptionMap;
0 1 1 option Lorg/xnio/Option<*>;
Signature: (Lorg/xnio/Option<*>;)Z
MethodParameters:
Name Flags
option
public <T> T get(org.xnio.Option<T>);
descriptor: (Lorg/xnio/Option;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 1
aload 0
getfield org.xnio.OptionMap.value:Ljava/util/Map;
aload 1
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
invokevirtual org.xnio.Option.cast:(Ljava/lang/Object;)Ljava/lang/Object;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/xnio/OptionMap;
0 1 1 option Lorg/xnio/Option<TT;>;
Signature: <T:Ljava/lang/Object;>(Lorg/xnio/Option<TT;>;)TT;
MethodParameters:
Name Flags
option
public <T> T get(org.xnio.Option<T>, );
descriptor: (Lorg/xnio/Option;Ljava/lang/Object;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.xnio.OptionMap.value:Ljava/util/Map;
aload 1
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
astore 3
start local 3 1: aload 3
ifnonnull 2
aload 2
goto 3
StackMap locals: java.lang.Object
StackMap stack:
2: aload 1
aload 3
invokevirtual org.xnio.Option.cast:(Ljava/lang/Object;)Ljava/lang/Object;
StackMap locals:
StackMap stack: java.lang.Object
3: areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/xnio/OptionMap;
0 4 1 option Lorg/xnio/Option<TT;>;
0 4 2 defaultValue TT;
1 4 3 o Ljava/lang/Object;
Signature: <T:Ljava/lang/Object;>(Lorg/xnio/Option<TT;>;TT;)TT;
MethodParameters:
Name Flags
option
defaultValue
public boolean get(org.xnio.Option<java.lang.Boolean>, );
descriptor: (Lorg/xnio/Option;Z)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.xnio.OptionMap.value:Ljava/util/Map;
aload 1
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
astore 3
start local 3 1: aload 3
ifnonnull 2
iload 2
goto 3
StackMap locals: java.lang.Object
StackMap stack:
2: aload 1
aload 3
invokevirtual org.xnio.Option.cast:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.Boolean
invokevirtual java.lang.Boolean.booleanValue:()Z
StackMap locals:
StackMap stack: int
3: ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/xnio/OptionMap;
0 4 1 option Lorg/xnio/Option<Ljava/lang/Boolean;>;
0 4 2 defaultValue Z
1 4 3 o Ljava/lang/Object;
Signature: (Lorg/xnio/Option<Ljava/lang/Boolean;>;Z)Z
MethodParameters:
Name Flags
option
defaultValue
public int get(org.xnio.Option<java.lang.Integer>, );
descriptor: (Lorg/xnio/Option;I)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.xnio.OptionMap.value:Ljava/util/Map;
aload 1
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
astore 3
start local 3 1: aload 3
ifnonnull 2
iload 2
goto 3
StackMap locals: java.lang.Object
StackMap stack:
2: aload 1
aload 3
invokevirtual org.xnio.Option.cast:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.Integer
invokevirtual java.lang.Integer.intValue:()I
StackMap locals:
StackMap stack: int
3: ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/xnio/OptionMap;
0 4 1 option Lorg/xnio/Option<Ljava/lang/Integer;>;
0 4 2 defaultValue I
1 4 3 o Ljava/lang/Object;
Signature: (Lorg/xnio/Option<Ljava/lang/Integer;>;I)I
MethodParameters:
Name Flags
option
defaultValue
public long get(org.xnio.Option<java.lang.Long>, );
descriptor: (Lorg/xnio/Option;J)J
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.xnio.OptionMap.value:Ljava/util/Map;
aload 1
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
astore 4
start local 4 1: aload 4
ifnonnull 2
lload 2
goto 3
StackMap locals: java.lang.Object
StackMap stack:
2: aload 1
aload 4
invokevirtual org.xnio.Option.cast:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.Long
invokevirtual java.lang.Long.longValue:()J
StackMap locals:
StackMap stack: long
3: lreturn
end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/xnio/OptionMap;
0 4 1 option Lorg/xnio/Option<Ljava/lang/Long;>;
0 4 2 defaultValue J
1 4 4 o Ljava/lang/Object;
Signature: (Lorg/xnio/Option<Ljava/lang/Long;>;J)J
MethodParameters:
Name Flags
option
defaultValue
public java.util.Iterator<org.xnio.Option<?>> iterator();
descriptor: ()Ljava/util/Iterator;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.xnio.OptionMap.value:Ljava/util/Map;
invokeinterface java.util.Map.keySet:()Ljava/util/Set;
invokestatic java.util.Collections.unmodifiableCollection:(Ljava/util/Collection;)Ljava/util/Collection;
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/xnio/OptionMap;
Signature: ()Ljava/util/Iterator<Lorg/xnio/Option<*>;>;
public int size();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.xnio.OptionMap.value:Ljava/util/Map;
invokeinterface java.util.Map.size:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/xnio/OptionMap;
public static org.xnio.OptionMap$Builder builder();
descriptor: ()Lorg/xnio/OptionMap$Builder;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: new org.xnio.OptionMap$Builder
dup
invokespecial org.xnio.OptionMap$Builder.<init>:()V
areturn
LocalVariableTable:
Start End Slot Name Signature
public static <T> org.xnio.OptionMap create(org.xnio.Option<T>, T);
descriptor: (Lorg/xnio/Option;Ljava/lang/Object;)Lorg/xnio/OptionMap;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
ifnonnull 2
1: getstatic org.xnio._private.Messages.msg:Lorg/xnio/_private/Messages;
ldc "option"
invokeinterface org.xnio._private.Messages.nullParameter:(Ljava/lang/String;)Ljava/lang/IllegalArgumentException;
athrow
2: StackMap locals:
StackMap stack:
aload 1
ifnonnull 4
3: getstatic org.xnio._private.Messages.msg:Lorg/xnio/_private/Messages;
ldc "value"
invokeinterface org.xnio._private.Messages.nullParameter:(Ljava/lang/String;)Ljava/lang/IllegalArgumentException;
athrow
4: StackMap locals:
StackMap stack:
new org.xnio.OptionMap
dup
aload 0
aload 0
aload 1
invokevirtual org.xnio.Option.cast:(Ljava/lang/Object;)Ljava/lang/Object;
invokestatic java.util.Collections.singletonMap:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/util/Map;
invokespecial org.xnio.OptionMap.<init>:(Ljava/util/Map;)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 option Lorg/xnio/Option<TT;>;
0 5 1 value TT;
Signature: <T:Ljava/lang/Object;>(Lorg/xnio/Option<TT;>;TT;)Lorg/xnio/OptionMap;
MethodParameters:
Name Flags
option
value
public static <T1, T2> org.xnio.OptionMap create(org.xnio.Option<T1>, T1, org.xnio.Option<T2>, T2);
descriptor: (Lorg/xnio/Option;Ljava/lang/Object;Lorg/xnio/Option;Ljava/lang/Object;)Lorg/xnio/OptionMap;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
ifnonnull 2
1: getstatic org.xnio._private.Messages.msg:Lorg/xnio/_private/Messages;
ldc "option1"
invokeinterface org.xnio._private.Messages.nullParameter:(Ljava/lang/String;)Ljava/lang/IllegalArgumentException;
athrow
2: StackMap locals:
StackMap stack:
aload 1
ifnonnull 4
3: getstatic org.xnio._private.Messages.msg:Lorg/xnio/_private/Messages;
ldc "value1"
invokeinterface org.xnio._private.Messages.nullParameter:(Ljava/lang/String;)Ljava/lang/IllegalArgumentException;
athrow
4: StackMap locals:
StackMap stack:
aload 2
ifnonnull 6
5: getstatic org.xnio._private.Messages.msg:Lorg/xnio/_private/Messages;
ldc "option2"
invokeinterface org.xnio._private.Messages.nullParameter:(Ljava/lang/String;)Ljava/lang/IllegalArgumentException;
athrow
6: StackMap locals:
StackMap stack:
aload 3
ifnonnull 8
7: getstatic org.xnio._private.Messages.msg:Lorg/xnio/_private/Messages;
ldc "value2"
invokeinterface org.xnio._private.Messages.nullParameter:(Ljava/lang/String;)Ljava/lang/IllegalArgumentException;
athrow
8: StackMap locals:
StackMap stack:
aload 0
aload 2
if_acmpne 10
9: aload 2
aload 3
invokestatic org.xnio.OptionMap.create:(Lorg/xnio/Option;Ljava/lang/Object;)Lorg/xnio/OptionMap;
areturn
10: StackMap locals:
StackMap stack:
new java.util.IdentityHashMap
dup
iconst_2
invokespecial java.util.IdentityHashMap.<init>:(I)V
astore 4
start local 4 11: aload 4
aload 0
aload 1
invokevirtual java.util.IdentityHashMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
12: aload 4
aload 2
aload 3
invokevirtual java.util.IdentityHashMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
13: new org.xnio.OptionMap
dup
aload 4
invokespecial org.xnio.OptionMap.<init>:(Ljava/util/Map;)V
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 option1 Lorg/xnio/Option<TT1;>;
0 14 1 value1 TT1;
0 14 2 option2 Lorg/xnio/Option<TT2;>;
0 14 3 value2 TT2;
11 14 4 map Ljava/util/IdentityHashMap<Lorg/xnio/Option<*>;Ljava/lang/Object;>;
Signature: <T1:Ljava/lang/Object;T2:Ljava/lang/Object;>(Lorg/xnio/Option<TT1;>;TT1;Lorg/xnio/Option<TT2;>;TT2;)Lorg/xnio/OptionMap;
MethodParameters:
Name Flags
option1
value1
option2
value2
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
astore 1
start local 1 1: aload 1
bipush 123
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
2: aload 0
getfield org.xnio.OptionMap.value:Ljava/util/Map;
invokeinterface java.util.Map.entrySet:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 2
start local 2 3: goto 8
4: StackMap locals: java.lang.StringBuilder java.util.Iterator
StackMap stack:
aload 2
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.util.Map$Entry
astore 3
start local 3 5: aload 1
aload 3
invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc "=>"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 3
invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
pop
6: aload 2
invokeinterface java.util.Iterator.hasNext:()Z
ifeq 8
7: aload 1
bipush 44
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
end local 3 8: StackMap locals:
StackMap stack:
aload 2
invokeinterface java.util.Iterator.hasNext:()Z
ifne 4
9: aload 1
bipush 125
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
10: aload 1
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lorg/xnio/OptionMap;
1 11 1 builder Ljava/lang/StringBuilder;
3 11 2 iterator Ljava/util/Iterator<Ljava/util/Map$Entry<Lorg/xnio/Option<*>;Ljava/lang/Object;>;>;
5 8 3 entry Ljava/util/Map$Entry<Lorg/xnio/Option<*>;Ljava/lang/Object;>;
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
instanceof org.xnio.OptionMap
ifeq 1
aload 0
aload 1
checkcast org.xnio.OptionMap
invokevirtual org.xnio.OptionMap.equals:(Lorg/xnio/OptionMap;)Z
ifeq 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/xnio/OptionMap;
0 2 1 other Ljava/lang/Object;
MethodParameters:
Name Flags
other
public boolean equals(org.xnio.OptionMap);
descriptor: (Lorg/xnio/OptionMap;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
if_acmpeq 2
aload 1
ifnull 1
aload 0
getfield org.xnio.OptionMap.value:Ljava/util/Map;
aload 1
getfield org.xnio.OptionMap.value:Ljava/util/Map;
invokeinterface java.util.Map.equals:(Ljava/lang/Object;)Z
ifne 2
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
StackMap locals:
StackMap stack:
2: iconst_1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/xnio/OptionMap;
0 3 1 other Lorg/xnio/OptionMap;
MethodParameters:
Name Flags
other
public int hashCode();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.xnio.OptionMap.value:Ljava/util/Map;
invokeinterface java.util.Map.hashCode:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/xnio/OptionMap;
}
Signature: Ljava/lang/Object;Ljava/lang/Iterable<Lorg/xnio/Option<*>;>;Ljava/io/Serializable;
SourceFile: "OptionMap.java"
NestMembers:
org.xnio.OptionMap$Builder org.xnio.OptionMap$Builder$OVPair
InnerClasses:
public abstract Entry = java.util.Map$Entry of java.util.Map
public final Builder = org.xnio.OptionMap$Builder of org.xnio.OptionMap