public final class io.dropwizard.util.SizeUnit extends java.lang.Enum<io.dropwizard.util.SizeUnit>
minor version: 0
major version: 59
flags: flags: (0x4031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER, ACC_ANNOTATION
this_class: io.dropwizard.util.SizeUnit
super_class: java.lang.Enum
{
public static final io.dropwizard.util.SizeUnit BYTES;
descriptor: Lio/dropwizard/util/SizeUnit;
flags: (0x4019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL, ACC_ANNOTATION
public static final io.dropwizard.util.SizeUnit KILOBYTES;
descriptor: Lio/dropwizard/util/SizeUnit;
flags: (0x4019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL, ACC_ANNOTATION
public static final io.dropwizard.util.SizeUnit MEGABYTES;
descriptor: Lio/dropwizard/util/SizeUnit;
flags: (0x4019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL, ACC_ANNOTATION
public static final io.dropwizard.util.SizeUnit GIGABYTES;
descriptor: Lio/dropwizard/util/SizeUnit;
flags: (0x4019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL, ACC_ANNOTATION
public static final io.dropwizard.util.SizeUnit TERABYTES;
descriptor: Lio/dropwizard/util/SizeUnit;
flags: (0x4019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL, ACC_ANNOTATION
private final long bits;
descriptor: J
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 final io.dropwizard.util.SizeUnit[] ENUM$VALUES;
descriptor: [Lio/dropwizard/util/SizeUnit;
flags: (0x101a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=6, locals=0, args_size=0
0: new io.dropwizard.util.SizeUnit
dup
ldc "BYTES"
iconst_0
1: ldc 8
invokespecial io.dropwizard.util.SizeUnit.<init>:(Ljava/lang/String;IJ)V
putstatic io.dropwizard.util.SizeUnit.BYTES:Lio/dropwizard/util/SizeUnit;
2: new io.dropwizard.util.SizeUnit
dup
ldc "KILOBYTES"
iconst_1
3: ldc 8192
invokespecial io.dropwizard.util.SizeUnit.<init>:(Ljava/lang/String;IJ)V
putstatic io.dropwizard.util.SizeUnit.KILOBYTES:Lio/dropwizard/util/SizeUnit;
4: new io.dropwizard.util.SizeUnit
dup
ldc "MEGABYTES"
iconst_2
5: ldc 8388608
invokespecial io.dropwizard.util.SizeUnit.<init>:(Ljava/lang/String;IJ)V
putstatic io.dropwizard.util.SizeUnit.MEGABYTES:Lio/dropwizard/util/SizeUnit;
6: new io.dropwizard.util.SizeUnit
dup
ldc "GIGABYTES"
iconst_3
7: ldc 8589934592
invokespecial io.dropwizard.util.SizeUnit.<init>:(Ljava/lang/String;IJ)V
putstatic io.dropwizard.util.SizeUnit.GIGABYTES:Lio/dropwizard/util/SizeUnit;
8: new io.dropwizard.util.SizeUnit
dup
ldc "TERABYTES"
iconst_4
9: ldc 8796093022208
invokespecial io.dropwizard.util.SizeUnit.<init>:(Ljava/lang/String;IJ)V
putstatic io.dropwizard.util.SizeUnit.TERABYTES:Lio/dropwizard/util/SizeUnit;
10: iconst_5
anewarray io.dropwizard.util.SizeUnit
dup
iconst_0
getstatic io.dropwizard.util.SizeUnit.BYTES:Lio/dropwizard/util/SizeUnit;
aastore
dup
iconst_1
getstatic io.dropwizard.util.SizeUnit.KILOBYTES:Lio/dropwizard/util/SizeUnit;
aastore
dup
iconst_2
getstatic io.dropwizard.util.SizeUnit.MEGABYTES:Lio/dropwizard/util/SizeUnit;
aastore
dup
iconst_3
getstatic io.dropwizard.util.SizeUnit.GIGABYTES:Lio/dropwizard/util/SizeUnit;
aastore
dup
iconst_4
getstatic io.dropwizard.util.SizeUnit.TERABYTES:Lio/dropwizard/util/SizeUnit;
aastore
putstatic io.dropwizard.util.SizeUnit.ENUM$VALUES:[Lio/dropwizard/util/SizeUnit;
return
LocalVariableTable:
Start End Slot Name Signature
private void <init>(java.lang.String, int, long);
descriptor: (Ljava/lang/String;IJ)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=5, args_size=4
start local 0 start local 3 0: aload 0
aload 1
iload 2
invokespecial java.lang.Enum.<init>:(Ljava/lang/String;I)V
1: aload 0
lload 3
putfield io.dropwizard.util.SizeUnit.bits:J
2: return
end local 3 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/dropwizard/util/SizeUnit;
0 3 3 bits J
MethodParameters:
Name Flags
$enum$name
$enum$ordinal
bits
public long convert(long, io.dropwizard.util.SizeUnit);
descriptor: (JLio/dropwizard/util/SizeUnit;)J
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=3
start local 0 start local 1 start local 3 0: lload 1
aload 3
getfield io.dropwizard.util.SizeUnit.bits:J
lmul
aload 0
getfield io.dropwizard.util.SizeUnit.bits:J
ldiv
lreturn
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/dropwizard/util/SizeUnit;
0 1 1 size J
0 1 3 unit Lio/dropwizard/util/SizeUnit;
MethodParameters:
Name Flags
size
unit
public long toBytes(long);
descriptor: (J)J
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: getstatic io.dropwizard.util.SizeUnit.BYTES:Lio/dropwizard/util/SizeUnit;
lload 1
aload 0
invokevirtual io.dropwizard.util.SizeUnit.convert:(JLio/dropwizard/util/SizeUnit;)J
lreturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/dropwizard/util/SizeUnit;
0 1 1 l J
MethodParameters:
Name Flags
l
public long toKilobytes(long);
descriptor: (J)J
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: getstatic io.dropwizard.util.SizeUnit.KILOBYTES:Lio/dropwizard/util/SizeUnit;
lload 1
aload 0
invokevirtual io.dropwizard.util.SizeUnit.convert:(JLio/dropwizard/util/SizeUnit;)J
lreturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/dropwizard/util/SizeUnit;
0 1 1 l J
MethodParameters:
Name Flags
l
public long toMegabytes(long);
descriptor: (J)J
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: getstatic io.dropwizard.util.SizeUnit.MEGABYTES:Lio/dropwizard/util/SizeUnit;
lload 1
aload 0
invokevirtual io.dropwizard.util.SizeUnit.convert:(JLio/dropwizard/util/SizeUnit;)J
lreturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/dropwizard/util/SizeUnit;
0 1 1 l J
MethodParameters:
Name Flags
l
public long toGigabytes(long);
descriptor: (J)J
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: getstatic io.dropwizard.util.SizeUnit.GIGABYTES:Lio/dropwizard/util/SizeUnit;
lload 1
aload 0
invokevirtual io.dropwizard.util.SizeUnit.convert:(JLio/dropwizard/util/SizeUnit;)J
lreturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/dropwizard/util/SizeUnit;
0 1 1 l J
MethodParameters:
Name Flags
l
public long toTerabytes(long);
descriptor: (J)J
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: getstatic io.dropwizard.util.SizeUnit.TERABYTES:Lio/dropwizard/util/SizeUnit;
lload 1
aload 0
invokevirtual io.dropwizard.util.SizeUnit.convert:(JLio/dropwizard/util/SizeUnit;)J
lreturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/dropwizard/util/SizeUnit;
0 1 1 l J
MethodParameters:
Name Flags
l
public io.dropwizard.util.DataSizeUnit toDataSizeUnit();
descriptor: ()Lio/dropwizard/util/DataSizeUnit;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: invokestatic io.dropwizard.util.SizeUnit.$SWITCH_TABLE$io$dropwizard$util$SizeUnit:()[I
aload 0
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:
getstatic io.dropwizard.util.DataSizeUnit.BYTES:Lio/dropwizard/util/DataSizeUnit;
areturn
2: StackMap locals:
StackMap stack:
getstatic io.dropwizard.util.DataSizeUnit.KIBIBYTES:Lio/dropwizard/util/DataSizeUnit;
areturn
3: StackMap locals:
StackMap stack:
getstatic io.dropwizard.util.DataSizeUnit.MEBIBYTES:Lio/dropwizard/util/DataSizeUnit;
areturn
4: StackMap locals:
StackMap stack:
getstatic io.dropwizard.util.DataSizeUnit.GIBIBYTES:Lio/dropwizard/util/DataSizeUnit;
areturn
5: StackMap locals:
StackMap stack:
getstatic io.dropwizard.util.DataSizeUnit.TEBIBYTES:Lio/dropwizard/util/DataSizeUnit;
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 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/SizeUnit;
public static io.dropwizard.util.SizeUnit[] values();
descriptor: ()[Lio/dropwizard/util/SizeUnit;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=3, args_size=0
0: getstatic io.dropwizard.util.SizeUnit.ENUM$VALUES:[Lio/dropwizard/util/SizeUnit;
dup
astore 0
iconst_0
aload 0
arraylength
dup
istore 1
anewarray io.dropwizard.util.SizeUnit
dup
astore 2
iconst_0
iload 1
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
aload 2
areturn
LocalVariableTable:
Start End Slot Name Signature
public static io.dropwizard.util.SizeUnit valueOf(java.lang.String);
descriptor: (Ljava/lang/String;)Lio/dropwizard/util/SizeUnit;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
0: ldc Lio/dropwizard/util/SizeUnit;
aload 0
invokestatic java.lang.Enum.valueOf:(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Enum;
checkcast io.dropwizard.util.SizeUnit
areturn
LocalVariableTable:
Start End Slot Name Signature
MethodParameters:
Name Flags
name
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.SizeUnit.$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.SizeUnit.$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
}
Signature: Ljava/lang/Enum<Lio/dropwizard/util/SizeUnit;>;
SourceFile: "SizeUnit.java"
RuntimeVisibleAnnotations:
java.lang.Deprecated()