public class io.dropwizard.util.Size implements java.lang.Comparable<io.dropwizard.util.Size>, java.io.Serializable
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: io.dropwizard.util.Size
super_class: java.lang.Object
{
private static final long serialVersionUID;
descriptor: J
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 6790991929249604526
private static final java.util.regex.Pattern SIZE_PATTERN;
descriptor: Ljava/util/regex/Pattern;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.util.SortedMap<java.lang.String, io.dropwizard.util.SizeUnit> SUFFIXES;
descriptor: Ljava/util/SortedMap;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Ljava/util/SortedMap<Ljava/lang/String;Lio/dropwizard/util/SizeUnit;>;
private final long count;
descriptor: J
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final io.dropwizard.util.SizeUnit unit;
descriptor: Lio/dropwizard/util/SizeUnit;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private static volatile int[] $SWITCH_TABLE$io$dropwizard$util$SizeUnit;
descriptor: [I
flags: (0x104a) ACC_PRIVATE, ACC_STATIC, ACC_VOLATILE, ACC_SYNTHETIC
private static volatile int[] $SWITCH_TABLE$io$dropwizard$util$DataSizeUnit;
descriptor: [I
flags: (0x104a) ACC_PRIVATE, ACC_STATIC, ACC_VOLATILE, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=1, args_size=0
0: ldc "(\\d+)\\s*(\\S+)"
invokestatic java.util.regex.Pattern.compile:(Ljava/lang/String;)Ljava/util/regex/Pattern;
putstatic io.dropwizard.util.Size.SIZE_PATTERN:Ljava/util/regex/Pattern;
1: new java.util.TreeMap
dup
getstatic java.lang.String.CASE_INSENSITIVE_ORDER:Ljava/util/Comparator;
invokespecial java.util.TreeMap.<init>:(Ljava/util/Comparator;)V
astore 0
start local 0 2: aload 0
ldc "B"
getstatic io.dropwizard.util.SizeUnit.BYTES:Lio/dropwizard/util/SizeUnit;
invokeinterface java.util.SortedMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
3: aload 0
ldc "byte"
getstatic io.dropwizard.util.SizeUnit.BYTES:Lio/dropwizard/util/SizeUnit;
invokeinterface java.util.SortedMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
4: aload 0
ldc "bytes"
getstatic io.dropwizard.util.SizeUnit.BYTES:Lio/dropwizard/util/SizeUnit;
invokeinterface java.util.SortedMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
5: aload 0
ldc "K"
getstatic io.dropwizard.util.SizeUnit.KILOBYTES:Lio/dropwizard/util/SizeUnit;
invokeinterface java.util.SortedMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
6: aload 0
ldc "KB"
getstatic io.dropwizard.util.SizeUnit.KILOBYTES:Lio/dropwizard/util/SizeUnit;
invokeinterface java.util.SortedMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
7: aload 0
ldc "KiB"
getstatic io.dropwizard.util.SizeUnit.KILOBYTES:Lio/dropwizard/util/SizeUnit;
invokeinterface java.util.SortedMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
8: aload 0
ldc "kilobyte"
getstatic io.dropwizard.util.SizeUnit.KILOBYTES:Lio/dropwizard/util/SizeUnit;
invokeinterface java.util.SortedMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
9: aload 0
ldc "kilobytes"
getstatic io.dropwizard.util.SizeUnit.KILOBYTES:Lio/dropwizard/util/SizeUnit;
invokeinterface java.util.SortedMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
10: aload 0
ldc "M"
getstatic io.dropwizard.util.SizeUnit.MEGABYTES:Lio/dropwizard/util/SizeUnit;
invokeinterface java.util.SortedMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
11: aload 0
ldc "MB"
getstatic io.dropwizard.util.SizeUnit.MEGABYTES:Lio/dropwizard/util/SizeUnit;
invokeinterface java.util.SortedMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
12: aload 0
ldc "MiB"
getstatic io.dropwizard.util.SizeUnit.MEGABYTES:Lio/dropwizard/util/SizeUnit;
invokeinterface java.util.SortedMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
13: aload 0
ldc "megabyte"
getstatic io.dropwizard.util.SizeUnit.MEGABYTES:Lio/dropwizard/util/SizeUnit;
invokeinterface java.util.SortedMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
14: aload 0
ldc "megabytes"
getstatic io.dropwizard.util.SizeUnit.MEGABYTES:Lio/dropwizard/util/SizeUnit;
invokeinterface java.util.SortedMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
15: aload 0
ldc "G"
getstatic io.dropwizard.util.SizeUnit.GIGABYTES:Lio/dropwizard/util/SizeUnit;
invokeinterface java.util.SortedMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
16: aload 0
ldc "GB"
getstatic io.dropwizard.util.SizeUnit.GIGABYTES:Lio/dropwizard/util/SizeUnit;
invokeinterface java.util.SortedMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
17: aload 0
ldc "GiB"
getstatic io.dropwizard.util.SizeUnit.GIGABYTES:Lio/dropwizard/util/SizeUnit;
invokeinterface java.util.SortedMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
18: aload 0
ldc "gigabyte"
getstatic io.dropwizard.util.SizeUnit.GIGABYTES:Lio/dropwizard/util/SizeUnit;
invokeinterface java.util.SortedMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
19: aload 0
ldc "gigabytes"
getstatic io.dropwizard.util.SizeUnit.GIGABYTES:Lio/dropwizard/util/SizeUnit;
invokeinterface java.util.SortedMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
20: aload 0
ldc "T"
getstatic io.dropwizard.util.SizeUnit.TERABYTES:Lio/dropwizard/util/SizeUnit;
invokeinterface java.util.SortedMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
21: aload 0
ldc "TB"
getstatic io.dropwizard.util.SizeUnit.TERABYTES:Lio/dropwizard/util/SizeUnit;
invokeinterface java.util.SortedMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
22: aload 0
ldc "TiB"
getstatic io.dropwizard.util.SizeUnit.TERABYTES:Lio/dropwizard/util/SizeUnit;
invokeinterface java.util.SortedMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
23: aload 0
ldc "terabyte"
getstatic io.dropwizard.util.SizeUnit.TERABYTES:Lio/dropwizard/util/SizeUnit;
invokeinterface java.util.SortedMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
24: aload 0
ldc "terabytes"
getstatic io.dropwizard.util.SizeUnit.TERABYTES:Lio/dropwizard/util/SizeUnit;
invokeinterface java.util.SortedMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
25: aload 0
invokestatic java.util.Collections.unmodifiableSortedMap:(Ljava/util/SortedMap;)Ljava/util/SortedMap;
putstatic io.dropwizard.util.Size.SUFFIXES:Ljava/util/SortedMap;
end local 0 26: return
LocalVariableTable:
Start End Slot Name Signature
2 26 0 suffixes Ljava/util/SortedMap<Ljava/lang/String;Lio/dropwizard/util/SizeUnit;>;
public static io.dropwizard.util.Size bytes(long);
descriptor: (J)Lio/dropwizard/util/Size;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=2, args_size=1
start local 0 0: new io.dropwizard.util.Size
dup
lload 0
getstatic io.dropwizard.util.SizeUnit.BYTES:Lio/dropwizard/util/SizeUnit;
invokespecial io.dropwizard.util.Size.<init>:(JLio/dropwizard/util/SizeUnit;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 count J
MethodParameters:
Name Flags
count
public static io.dropwizard.util.Size kilobytes(long);
descriptor: (J)Lio/dropwizard/util/Size;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=2, args_size=1
start local 0 0: new io.dropwizard.util.Size
dup
lload 0
getstatic io.dropwizard.util.SizeUnit.KILOBYTES:Lio/dropwizard/util/SizeUnit;
invokespecial io.dropwizard.util.Size.<init>:(JLio/dropwizard/util/SizeUnit;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 count J
MethodParameters:
Name Flags
count
public static io.dropwizard.util.Size megabytes(long);
descriptor: (J)Lio/dropwizard/util/Size;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=2, args_size=1
start local 0 0: new io.dropwizard.util.Size
dup
lload 0
getstatic io.dropwizard.util.SizeUnit.MEGABYTES:Lio/dropwizard/util/SizeUnit;
invokespecial io.dropwizard.util.Size.<init>:(JLio/dropwizard/util/SizeUnit;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 count J
MethodParameters:
Name Flags
count
public static io.dropwizard.util.Size gigabytes(long);
descriptor: (J)Lio/dropwizard/util/Size;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=2, args_size=1
start local 0 0: new io.dropwizard.util.Size
dup
lload 0
getstatic io.dropwizard.util.SizeUnit.GIGABYTES:Lio/dropwizard/util/SizeUnit;
invokespecial io.dropwizard.util.Size.<init>:(JLio/dropwizard/util/SizeUnit;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 count J
MethodParameters:
Name Flags
count
public static io.dropwizard.util.Size terabytes(long);
descriptor: (J)Lio/dropwizard/util/Size;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=2, args_size=1
start local 0 0: new io.dropwizard.util.Size
dup
lload 0
getstatic io.dropwizard.util.SizeUnit.TERABYTES:Lio/dropwizard/util/SizeUnit;
invokespecial io.dropwizard.util.Size.<init>:(JLio/dropwizard/util/SizeUnit;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 count J
MethodParameters:
Name Flags
count
public static io.dropwizard.util.Size parse(java.lang.String);
descriptor: (Ljava/lang/String;)Lio/dropwizard/util/Size;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=5, args_size=1
start local 0 0: getstatic io.dropwizard.util.Size.SIZE_PATTERN:Ljava/util/regex/Pattern;
aload 0
invokevirtual java.util.regex.Pattern.matcher:(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;
astore 1
start local 1 1: aload 1
invokevirtual java.util.regex.Matcher.matches:()Z
ifne 3
2: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "Invalid size: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals: java.util.regex.Matcher
StackMap stack:
aload 1
iconst_1
invokevirtual java.util.regex.Matcher.group:(I)Ljava/lang/String;
invokestatic java.lang.Long.parseLong:(Ljava/lang/String;)J
lstore 2
start local 2 4: getstatic io.dropwizard.util.Size.SUFFIXES:Ljava/util/SortedMap;
aload 1
iconst_2
invokevirtual java.util.regex.Matcher.group:(I)Ljava/lang/String;
invokeinterface java.util.SortedMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast io.dropwizard.util.SizeUnit
astore 4
start local 4 5: aload 4
ifnonnull 7
6: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "Invalid size: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc ". Wrong size unit"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
7: StackMap locals: long io.dropwizard.util.SizeUnit
StackMap stack:
new io.dropwizard.util.Size
dup
lload 2
aload 4
invokespecial io.dropwizard.util.Size.<init>:(JLio/dropwizard/util/SizeUnit;)V
areturn
end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 size Ljava/lang/String;
1 8 1 matcher Ljava/util/regex/Matcher;
4 8 2 count J
5 8 4 unit Lio/dropwizard/util/SizeUnit;
RuntimeVisibleAnnotations:
com.fasterxml.jackson.annotation.JsonCreator()
MethodParameters:
Name Flags
size
private void <init>(long, io.dropwizard.util.SizeUnit);
descriptor: (JLio/dropwizard/util/SizeUnit;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 3 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
lload 1
putfield io.dropwizard.util.Size.count:J
2: aload 0
aload 3
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast io.dropwizard.util.SizeUnit
putfield io.dropwizard.util.Size.unit:Lio/dropwizard/util/SizeUnit;
3: return
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lio/dropwizard/util/Size;
0 4 1 count J
0 4 3 unit Lio/dropwizard/util/SizeUnit;
MethodParameters:
Name Flags
count
unit
public long getQuantity();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield io.dropwizard.util.Size.count:J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/dropwizard/util/Size;
public io.dropwizard.util.SizeUnit getUnit();
descriptor: ()Lio/dropwizard/util/SizeUnit;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.dropwizard.util.Size.unit:Lio/dropwizard/util/SizeUnit;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/dropwizard/util/Size;
public long toBytes();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: getstatic io.dropwizard.util.SizeUnit.BYTES:Lio/dropwizard/util/SizeUnit;
aload 0
getfield io.dropwizard.util.Size.count:J
aload 0
getfield io.dropwizard.util.Size.unit:Lio/dropwizard/util/SizeUnit;
invokevirtual io.dropwizard.util.SizeUnit.convert:(JLio/dropwizard/util/SizeUnit;)J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/dropwizard/util/Size;
public long toKilobytes();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: getstatic io.dropwizard.util.SizeUnit.KILOBYTES:Lio/dropwizard/util/SizeUnit;
aload 0
getfield io.dropwizard.util.Size.count:J
aload 0
getfield io.dropwizard.util.Size.unit:Lio/dropwizard/util/SizeUnit;
invokevirtual io.dropwizard.util.SizeUnit.convert:(JLio/dropwizard/util/SizeUnit;)J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/dropwizard/util/Size;
public long toMegabytes();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: getstatic io.dropwizard.util.SizeUnit.MEGABYTES:Lio/dropwizard/util/SizeUnit;
aload 0
getfield io.dropwizard.util.Size.count:J
aload 0
getfield io.dropwizard.util.Size.unit:Lio/dropwizard/util/SizeUnit;
invokevirtual io.dropwizard.util.SizeUnit.convert:(JLio/dropwizard/util/SizeUnit;)J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/dropwizard/util/Size;
public long toGigabytes();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: getstatic io.dropwizard.util.SizeUnit.GIGABYTES:Lio/dropwizard/util/SizeUnit;
aload 0
getfield io.dropwizard.util.Size.count:J
aload 0
getfield io.dropwizard.util.Size.unit:Lio/dropwizard/util/SizeUnit;
invokevirtual io.dropwizard.util.SizeUnit.convert:(JLio/dropwizard/util/SizeUnit;)J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/dropwizard/util/Size;
public long toTerabytes();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: getstatic io.dropwizard.util.SizeUnit.TERABYTES:Lio/dropwizard/util/SizeUnit;
aload 0
getfield io.dropwizard.util.Size.count:J
aload 0
getfield io.dropwizard.util.Size.unit:Lio/dropwizard/util/SizeUnit;
invokevirtual io.dropwizard.util.SizeUnit.convert:(JLio/dropwizard/util/SizeUnit;)J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/dropwizard/util/Size;
public boolean equals(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 1
if_acmpne 2
1: iconst_1
ireturn
2: StackMap locals:
StackMap stack:
aload 1
ifnull 3
aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
aload 1
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
if_acmpeq 4
3: StackMap locals:
StackMap stack:
iconst_0
ireturn
4: StackMap locals:
StackMap stack:
aload 1
checkcast io.dropwizard.util.Size
astore 2
start local 2 5: aload 0
aload 2
invokevirtual io.dropwizard.util.Size.compareTo:(Lio/dropwizard/util/Size;)I
ifne 6
iconst_1
ireturn
StackMap locals: io.dropwizard.util.Size
StackMap stack:
6: iconst_0
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lio/dropwizard/util/Size;
0 7 1 obj Ljava/lang/Object;
5 7 2 size Lio/dropwizard/util/Size;
MethodParameters:
Name Flags
obj
public int hashCode();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=1, args_size=1
start local 0 0: bipush 31
aload 0
getfield io.dropwizard.util.Size.count:J
aload 0
getfield io.dropwizard.util.Size.count:J
bipush 32
lushr
lxor
l2i
imul
aload 0
getfield io.dropwizard.util.Size.unit:Lio/dropwizard/util/SizeUnit;
invokevirtual io.dropwizard.util.SizeUnit.hashCode:()I
iadd
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/dropwizard/util/Size;
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
getfield io.dropwizard.util.Size.unit:Lio/dropwizard/util/SizeUnit;
invokevirtual io.dropwizard.util.SizeUnit.toString:()Ljava/lang/String;
getstatic java.util.Locale.ENGLISH:Ljava/util/Locale;
invokevirtual java.lang.String.toLowerCase:(Ljava/util/Locale;)Ljava/lang/String;
astore 1
start local 1 1: aload 0
getfield io.dropwizard.util.Size.count:J
lconst_1
lcmp
ifne 3
2: aload 1
iconst_0
aload 1
invokevirtual java.lang.String.length:()I
iconst_1
isub
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 1
3: StackMap locals: java.lang.String
StackMap stack:
new java.lang.StringBuilder
dup
aload 0
getfield io.dropwizard.util.Size.count:J
invokestatic java.lang.Long.toString:(J)Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
bipush 32
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lio/dropwizard/util/Size;
1 4 1 units Ljava/lang/String;
RuntimeVisibleAnnotations:
com.fasterxml.jackson.annotation.JsonValue()
public int compareTo(io.dropwizard.util.Size);
descriptor: (Lio/dropwizard/util/Size;)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield io.dropwizard.util.Size.unit:Lio/dropwizard/util/SizeUnit;
aload 1
getfield io.dropwizard.util.Size.unit:Lio/dropwizard/util/SizeUnit;
if_acmpne 2
1: aload 0
getfield io.dropwizard.util.Size.count:J
aload 1
getfield io.dropwizard.util.Size.count:J
invokestatic java.lang.Long.compare:(JJ)I
ireturn
2: StackMap locals:
StackMap stack:
aload 0
invokevirtual io.dropwizard.util.Size.toBytes:()J
aload 1
invokevirtual io.dropwizard.util.Size.toBytes:()J
invokestatic java.lang.Long.compare:(JJ)I
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/dropwizard/util/Size;
0 3 1 other Lio/dropwizard/util/Size;
MethodParameters:
Name Flags
other
public io.dropwizard.util.DataSize toDataSize();
descriptor: ()Lio/dropwizard/util/DataSize;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: invokestatic io.dropwizard.util.Size.$SWITCH_TABLE$io$dropwizard$util$SizeUnit:()[I
aload 0
getfield io.dropwizard.util.Size.unit:Lio/dropwizard/util/SizeUnit;
invokevirtual io.dropwizard.util.SizeUnit.ordinal:()I
iaload
tableswitch { // 1 - 5
1: 1
2: 2
3: 3
4: 4
5: 5
default: 6
}
1: StackMap locals:
StackMap stack:
aload 0
getfield io.dropwizard.util.Size.count:J
invokestatic io.dropwizard.util.DataSize.bytes:(J)Lio/dropwizard/util/DataSize;
areturn
2: StackMap locals:
StackMap stack:
aload 0
getfield io.dropwizard.util.Size.count:J
invokestatic io.dropwizard.util.DataSize.kibibytes:(J)Lio/dropwizard/util/DataSize;
areturn
3: StackMap locals:
StackMap stack:
aload 0
getfield io.dropwizard.util.Size.count:J
invokestatic io.dropwizard.util.DataSize.mebibytes:(J)Lio/dropwizard/util/DataSize;
areturn
4: StackMap locals:
StackMap stack:
aload 0
getfield io.dropwizard.util.Size.count:J
invokestatic io.dropwizard.util.DataSize.gibibytes:(J)Lio/dropwizard/util/DataSize;
areturn
5: StackMap locals:
StackMap stack:
aload 0
getfield io.dropwizard.util.Size.count:J
invokestatic io.dropwizard.util.DataSize.tebibytes:(J)Lio/dropwizard/util/DataSize;
areturn
6: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "Unknown unit: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual io.dropwizard.util.Size.getUnit:()Lio/dropwizard/util/SizeUnit;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lio/dropwizard/util/Size;
public static io.dropwizard.util.Size fromDataSize(io.dropwizard.util.DataSize);
descriptor: (Lio/dropwizard/util/DataSize;)Lio/dropwizard/util/Size;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: invokestatic io.dropwizard.util.Size.$SWITCH_TABLE$io$dropwizard$util$DataSizeUnit:()[I
aload 0
invokevirtual io.dropwizard.util.DataSize.getUnit:()Lio/dropwizard/util/DataSizeUnit;
invokevirtual io.dropwizard.util.DataSizeUnit.ordinal:()I
iaload
tableswitch { // 1 - 11
1: 1
2: 3
3: 5
4: 7
5: 9
6: 11
7: 2
8: 4
9: 6
10: 8
11: 10
default: 12
}
1: StackMap locals:
StackMap stack:
aload 0
invokevirtual io.dropwizard.util.DataSize.getQuantity:()J
invokestatic io.dropwizard.util.Size.bytes:(J)Lio/dropwizard/util/Size;
areturn
2: StackMap locals:
StackMap stack:
aload 0
invokevirtual io.dropwizard.util.DataSize.getQuantity:()J
invokestatic io.dropwizard.util.Size.kilobytes:(J)Lio/dropwizard/util/Size;
areturn
3: StackMap locals:
StackMap stack:
aload 0
invokevirtual io.dropwizard.util.DataSize.toBytes:()J
invokestatic io.dropwizard.util.Size.bytes:(J)Lio/dropwizard/util/Size;
areturn
4: StackMap locals:
StackMap stack:
aload 0
invokevirtual io.dropwizard.util.DataSize.getQuantity:()J
invokestatic io.dropwizard.util.Size.megabytes:(J)Lio/dropwizard/util/Size;
areturn
5: StackMap locals:
StackMap stack:
aload 0
invokevirtual io.dropwizard.util.DataSize.toBytes:()J
invokestatic io.dropwizard.util.Size.bytes:(J)Lio/dropwizard/util/Size;
areturn
6: StackMap locals:
StackMap stack:
aload 0
invokevirtual io.dropwizard.util.DataSize.getQuantity:()J
invokestatic io.dropwizard.util.Size.gigabytes:(J)Lio/dropwizard/util/Size;
areturn
7: StackMap locals:
StackMap stack:
aload 0
invokevirtual io.dropwizard.util.DataSize.toBytes:()J
invokestatic io.dropwizard.util.Size.bytes:(J)Lio/dropwizard/util/Size;
areturn
8: StackMap locals:
StackMap stack:
aload 0
invokevirtual io.dropwizard.util.DataSize.getQuantity:()J
invokestatic io.dropwizard.util.Size.terabytes:(J)Lio/dropwizard/util/Size;
areturn
9: StackMap locals:
StackMap stack:
aload 0
invokevirtual io.dropwizard.util.DataSize.toBytes:()J
invokestatic io.dropwizard.util.Size.bytes:(J)Lio/dropwizard/util/Size;
areturn
10: StackMap locals:
StackMap stack:
aload 0
invokevirtual io.dropwizard.util.DataSize.toTebibytes:()J
ldc 1024
lmul
invokestatic io.dropwizard.util.Size.terabytes:(J)Lio/dropwizard/util/Size;
areturn
11: StackMap locals:
StackMap stack:
aload 0
invokevirtual io.dropwizard.util.DataSize.toBytes:()J
invokestatic io.dropwizard.util.Size.bytes:(J)Lio/dropwizard/util/Size;
areturn
12: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "Unknown unit: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual io.dropwizard.util.DataSize.getUnit:()Lio/dropwizard/util/DataSizeUnit;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 dataSize Lio/dropwizard/util/DataSize;
MethodParameters:
Name Flags
dataSize
public int compareTo(java.lang.Object);
descriptor: (Ljava/lang/Object;)I
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
0: aload 0
aload 1
checkcast io.dropwizard.util.Size
invokevirtual io.dropwizard.util.Size.compareTo:(Lio/dropwizard/util/Size;)I
ireturn
LocalVariableTable:
Start End Slot Name Signature
static int[] $SWITCH_TABLE$io$dropwizard$util$SizeUnit();
descriptor: ()[I
flags: (0x1008) ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=1, args_size=0
0: getstatic io.dropwizard.util.Size.$SWITCH_TABLE$io$dropwizard$util$SizeUnit:[I
dup
ifnull 1
areturn
StackMap locals:
StackMap stack: int[]
1: pop
invokestatic io.dropwizard.util.SizeUnit.values:()[Lio/dropwizard/util/SizeUnit;
arraylength
newarray 10
astore 0
2: aload 0
getstatic io.dropwizard.util.SizeUnit.BYTES:Lio/dropwizard/util/SizeUnit;
invokevirtual io.dropwizard.util.SizeUnit.ordinal:()I
iconst_1
iastore
3: goto 5
StackMap locals: int[]
StackMap stack: java.lang.NoSuchFieldError
4: pop
StackMap locals:
StackMap stack:
5: aload 0
getstatic io.dropwizard.util.SizeUnit.GIGABYTES:Lio/dropwizard/util/SizeUnit;
invokevirtual io.dropwizard.util.SizeUnit.ordinal:()I
iconst_4
iastore
6: goto 8
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
7: pop
StackMap locals:
StackMap stack:
8: aload 0
getstatic io.dropwizard.util.SizeUnit.KILOBYTES:Lio/dropwizard/util/SizeUnit;
invokevirtual io.dropwizard.util.SizeUnit.ordinal:()I
iconst_2
iastore
9: goto 11
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
10: pop
StackMap locals:
StackMap stack:
11: aload 0
getstatic io.dropwizard.util.SizeUnit.MEGABYTES:Lio/dropwizard/util/SizeUnit;
invokevirtual io.dropwizard.util.SizeUnit.ordinal:()I
iconst_3
iastore
12: goto 14
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
13: pop
StackMap locals:
StackMap stack:
14: aload 0
getstatic io.dropwizard.util.SizeUnit.TERABYTES:Lio/dropwizard/util/SizeUnit;
invokevirtual io.dropwizard.util.SizeUnit.ordinal:()I
iconst_5
iastore
15: goto 17
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
16: pop
StackMap locals:
StackMap stack:
17: aload 0
dup
putstatic io.dropwizard.util.Size.$SWITCH_TABLE$io$dropwizard$util$SizeUnit:[I
areturn
LocalVariableTable:
Start End Slot Name Signature
Exception table:
from to target type
2 3 4 Class java.lang.NoSuchFieldError
5 6 7 Class java.lang.NoSuchFieldError
8 9 10 Class java.lang.NoSuchFieldError
11 12 13 Class java.lang.NoSuchFieldError
14 15 16 Class java.lang.NoSuchFieldError
static int[] $SWITCH_TABLE$io$dropwizard$util$DataSizeUnit();
descriptor: ()[I
flags: (0x1008) ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=1, args_size=0
0: getstatic io.dropwizard.util.Size.$SWITCH_TABLE$io$dropwizard$util$DataSizeUnit:[I
dup
ifnull 1
areturn
StackMap locals:
StackMap stack: int[]
1: pop
invokestatic io.dropwizard.util.DataSizeUnit.values:()[Lio/dropwizard/util/DataSizeUnit;
arraylength
newarray 10
astore 0
2: aload 0
getstatic io.dropwizard.util.DataSizeUnit.BYTES:Lio/dropwizard/util/DataSizeUnit;
invokevirtual io.dropwizard.util.DataSizeUnit.ordinal:()I
iconst_1
iastore
3: goto 5
StackMap locals: int[]
StackMap stack: java.lang.NoSuchFieldError
4: pop
StackMap locals:
StackMap stack:
5: aload 0
getstatic io.dropwizard.util.DataSizeUnit.GIBIBYTES:Lio/dropwizard/util/DataSizeUnit;
invokevirtual io.dropwizard.util.DataSizeUnit.ordinal:()I
bipush 9
iastore
6: goto 8
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
7: pop
StackMap locals:
StackMap stack:
8: aload 0
getstatic io.dropwizard.util.DataSizeUnit.GIGABYTES:Lio/dropwizard/util/DataSizeUnit;
invokevirtual io.dropwizard.util.DataSizeUnit.ordinal:()I
iconst_4
iastore
9: goto 11
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
10: pop
StackMap locals:
StackMap stack:
11: aload 0
getstatic io.dropwizard.util.DataSizeUnit.KIBIBYTES:Lio/dropwizard/util/DataSizeUnit;
invokevirtual io.dropwizard.util.DataSizeUnit.ordinal:()I
bipush 7
iastore
12: goto 14
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
13: pop
StackMap locals:
StackMap stack:
14: aload 0
getstatic io.dropwizard.util.DataSizeUnit.KILOBYTES:Lio/dropwizard/util/DataSizeUnit;
invokevirtual io.dropwizard.util.DataSizeUnit.ordinal:()I
iconst_2
iastore
15: goto 17
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
16: pop
StackMap locals:
StackMap stack:
17: aload 0
getstatic io.dropwizard.util.DataSizeUnit.MEBIBYTES:Lio/dropwizard/util/DataSizeUnit;
invokevirtual io.dropwizard.util.DataSizeUnit.ordinal:()I
bipush 8
iastore
18: goto 20
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
19: pop
StackMap locals:
StackMap stack:
20: aload 0
getstatic io.dropwizard.util.DataSizeUnit.MEGABYTES:Lio/dropwizard/util/DataSizeUnit;
invokevirtual io.dropwizard.util.DataSizeUnit.ordinal:()I
iconst_3
iastore
21: goto 23
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
22: pop
StackMap locals:
StackMap stack:
23: aload 0
getstatic io.dropwizard.util.DataSizeUnit.PEBIBYTES:Lio/dropwizard/util/DataSizeUnit;
invokevirtual io.dropwizard.util.DataSizeUnit.ordinal:()I
bipush 11
iastore
24: goto 26
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
25: pop
StackMap locals:
StackMap stack:
26: aload 0
getstatic io.dropwizard.util.DataSizeUnit.PETABYTES:Lio/dropwizard/util/DataSizeUnit;
invokevirtual io.dropwizard.util.DataSizeUnit.ordinal:()I
bipush 6
iastore
27: goto 29
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
28: pop
StackMap locals:
StackMap stack:
29: aload 0
getstatic io.dropwizard.util.DataSizeUnit.TEBIBYTES:Lio/dropwizard/util/DataSizeUnit;
invokevirtual io.dropwizard.util.DataSizeUnit.ordinal:()I
bipush 10
iastore
30: goto 32
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
31: pop
StackMap locals:
StackMap stack:
32: aload 0
getstatic io.dropwizard.util.DataSizeUnit.TERABYTES:Lio/dropwizard/util/DataSizeUnit;
invokevirtual io.dropwizard.util.DataSizeUnit.ordinal:()I
iconst_5
iastore
33: goto 35
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
34: pop
StackMap locals:
StackMap stack:
35: aload 0
dup
putstatic io.dropwizard.util.Size.$SWITCH_TABLE$io$dropwizard$util$DataSizeUnit:[I
areturn
LocalVariableTable:
Start End Slot Name Signature
Exception table:
from to target type
2 3 4 Class java.lang.NoSuchFieldError
5 6 7 Class java.lang.NoSuchFieldError
8 9 10 Class java.lang.NoSuchFieldError
11 12 13 Class java.lang.NoSuchFieldError
14 15 16 Class java.lang.NoSuchFieldError
17 18 19 Class java.lang.NoSuchFieldError
20 21 22 Class java.lang.NoSuchFieldError
23 24 25 Class java.lang.NoSuchFieldError
26 27 28 Class java.lang.NoSuchFieldError
29 30 31 Class java.lang.NoSuchFieldError
32 33 34 Class java.lang.NoSuchFieldError
}
Signature: Ljava/lang/Object;Ljava/lang/Comparable<Lio/dropwizard/util/Size;>;Ljava/io/Serializable;
SourceFile: "Size.java"
RuntimeVisibleAnnotations:
java.lang.Deprecated()