public final class org.glassfish.jersey.message.internal.Quality
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: org.glassfish.jersey.message.internal.Quality
super_class: java.lang.Object
{
public static final java.util.Comparator<org.glassfish.jersey.message.internal.Qualified> QUALIFIED_COMPARATOR;
descriptor: Ljava/util/Comparator;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
Signature: Ljava/util/Comparator<Lorg/glassfish/jersey/message/internal/Qualified;>;
public static final java.util.Comparator<java.lang.Integer> QUALITY_VALUE_COMPARATOR;
descriptor: Ljava/util/Comparator;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
Signature: Ljava/util/Comparator<Ljava/lang/Integer;>;
public static final java.lang.String QUALITY_PARAMETER_NAME;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "q"
public static final java.lang.String QUALITY_SOURCE_PARAMETER_NAME;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "qs"
public static final int MINIMUM;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 0
public static final int MAXIMUM;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 1000
public static final int DEFAULT;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 1000
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: new org.glassfish.jersey.message.internal.Quality$1
dup
invokespecial org.glassfish.jersey.message.internal.Quality$1.<init>:()V
putstatic org.glassfish.jersey.message.internal.Quality.QUALIFIED_COMPARATOR:Ljava/util/Comparator;
1: new org.glassfish.jersey.message.internal.Quality$2
dup
invokespecial org.glassfish.jersey.message.internal.Quality$2.<init>:()V
putstatic org.glassfish.jersey.message.internal.Quality.QUALITY_VALUE_COMPARATOR:Ljava/util/Comparator;
2: return
LocalVariableTable:
Start End Slot Name Signature
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: new java.lang.AssertionError
dup
ldc "Instantiation not allowed."
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/glassfish/jersey/message/internal/Quality;
static java.util.Map<java.lang.String, java.lang.String> enhanceWithQualityParameter(java.util.Map<java.lang.String, java.lang.String>, java.lang.String, int);
descriptor: (Ljava/util/Map;Ljava/lang/String;I)Ljava/util/Map;
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: iload 2
sipush 1000
if_icmpne 3
1: aload 0
ifnull 2
aload 0
invokeinterface java.util.Map.isEmpty:()Z
ifne 2
aload 0
aload 1
invokeinterface java.util.Map.containsKey:(Ljava/lang/Object;)Z
ifne 3
2: StackMap locals:
StackMap stack:
aload 0
areturn
3: StackMap locals:
StackMap stack:
aload 0
ifnull 4
aload 0
invokeinterface java.util.Map.isEmpty:()Z
ifeq 5
4: StackMap locals:
StackMap stack:
aload 1
iload 2
i2f
invokestatic org.glassfish.jersey.message.internal.Quality.qualityValueToString:(F)Ljava/lang/String;
invokestatic java.util.Collections.singletonMap:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/util/Map;
areturn
5: StackMap locals:
StackMap stack:
aload 0
aload 1
iload 2
i2f
invokestatic org.glassfish.jersey.message.internal.Quality.qualityValueToString:(F)Ljava/lang/String;
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
6: aload 0
7: areturn
8: StackMap locals:
StackMap stack: java.lang.UnsupportedOperationException
pop
9: new java.util.HashMap
dup
aload 0
invokespecial java.util.HashMap.<init>:(Ljava/util/Map;)V
astore 3
start local 3 10: aload 3
aload 1
iload 2
i2f
invokestatic org.glassfish.jersey.message.internal.Quality.qualityValueToString:(F)Ljava/lang/String;
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
11: aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 parameters Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
0 12 1 qualityParamName Ljava/lang/String;
0 12 2 quality I
10 12 3 result Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
Exception table:
from to target type
5 7 8 Class java.lang.UnsupportedOperationException
Signature: (Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;Ljava/lang/String;I)Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
MethodParameters:
Name Flags
parameters final
qualityParamName final
quality final
private static int compare(int, int);
descriptor: (II)I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: iload 0
iload 1
if_icmpge 1
iconst_m1
goto 3
StackMap locals:
StackMap stack:
1: iload 0
iload 1
if_icmpne 2
iconst_0
goto 3
StackMap locals:
StackMap stack:
2: iconst_1
StackMap locals:
StackMap stack: int
3: ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 x I
0 4 1 y I
MethodParameters:
Name Flags
x final
y final
private static java.lang.String qualityValueToString(float);
descriptor: (F)Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=9, locals=3, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
getstatic java.util.Locale.US:Ljava/util/Locale;
ldc "%3.3f"
iconst_1
anewarray java.lang.Object
dup
iconst_0
fload 0
ldc 1000.0
fdiv
invokestatic java.lang.Float.valueOf:(F)Ljava/lang/Float;
aastore
invokestatic java.lang.String.format:(Ljava/util/Locale;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
astore 1
start local 1 1: goto 3
start local 2 2: StackMap locals: java.lang.StringBuilder int
StackMap stack:
aload 1
iload 2
invokevirtual java.lang.StringBuilder.deleteCharAt:(I)Ljava/lang/StringBuilder;
pop
end local 2 3: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.lang.StringBuilder.length:()I
iconst_1
isub
dup
istore 2
start local 2 4: iconst_2
if_icmple 5
aload 1
iload 2
invokevirtual java.lang.StringBuilder.charAt:(I)C
bipush 48
if_icmpeq 2
5: StackMap locals: int
StackMap stack:
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 6 0 quality F
1 6 1 qsb Ljava/lang/StringBuilder;
2 3 2 lastIndex I
4 6 2 lastIndex I
MethodParameters:
Name Flags
quality final
}
SourceFile: "Quality.java"
NestMembers:
org.glassfish.jersey.message.internal.Quality$1 org.glassfish.jersey.message.internal.Quality$2
InnerClasses:
org.glassfish.jersey.message.internal.Quality$1
org.glassfish.jersey.message.internal.Quality$2