public class io.dropwizard.util.Duration implements java.lang.Comparable<io.dropwizard.util.Duration>
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: io.dropwizard.util.Duration
super_class: java.lang.Object
{
private static final java.util.regex.Pattern DURATION_PATTERN;
descriptor: Ljava/util/regex/Pattern;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final com.google.common.collect.ImmutableMap<java.lang.String, java.util.concurrent.TimeUnit> SUFFIXES;
descriptor: Lcom/google/common/collect/ImmutableMap;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Lcom/google/common/collect/ImmutableMap<Ljava/lang/String;Ljava/util/concurrent/TimeUnit;>;
private final long count;
descriptor: J
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.concurrent.TimeUnit unit;
descriptor: Ljava/util/concurrent/TimeUnit;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=0, 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.Duration.DURATION_PATTERN:Ljava/util/regex/Pattern;
1: new com.google.common.collect.ImmutableMap$Builder
dup
invokespecial com.google.common.collect.ImmutableMap$Builder.<init>:()V
2: ldc "ns"
getstatic java.util.concurrent.TimeUnit.NANOSECONDS:Ljava/util/concurrent/TimeUnit;
invokevirtual com.google.common.collect.ImmutableMap$Builder.put:(Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/collect/ImmutableMap$Builder;
3: ldc "nanosecond"
getstatic java.util.concurrent.TimeUnit.NANOSECONDS:Ljava/util/concurrent/TimeUnit;
invokevirtual com.google.common.collect.ImmutableMap$Builder.put:(Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/collect/ImmutableMap$Builder;
4: ldc "nanoseconds"
getstatic java.util.concurrent.TimeUnit.NANOSECONDS:Ljava/util/concurrent/TimeUnit;
invokevirtual com.google.common.collect.ImmutableMap$Builder.put:(Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/collect/ImmutableMap$Builder;
5: ldc "us"
getstatic java.util.concurrent.TimeUnit.MICROSECONDS:Ljava/util/concurrent/TimeUnit;
invokevirtual com.google.common.collect.ImmutableMap$Builder.put:(Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/collect/ImmutableMap$Builder;
6: ldc "microsecond"
getstatic java.util.concurrent.TimeUnit.MICROSECONDS:Ljava/util/concurrent/TimeUnit;
invokevirtual com.google.common.collect.ImmutableMap$Builder.put:(Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/collect/ImmutableMap$Builder;
7: ldc "microseconds"
getstatic java.util.concurrent.TimeUnit.MICROSECONDS:Ljava/util/concurrent/TimeUnit;
invokevirtual com.google.common.collect.ImmutableMap$Builder.put:(Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/collect/ImmutableMap$Builder;
8: ldc "ms"
getstatic java.util.concurrent.TimeUnit.MILLISECONDS:Ljava/util/concurrent/TimeUnit;
invokevirtual com.google.common.collect.ImmutableMap$Builder.put:(Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/collect/ImmutableMap$Builder;
9: ldc "millisecond"
getstatic java.util.concurrent.TimeUnit.MILLISECONDS:Ljava/util/concurrent/TimeUnit;
invokevirtual com.google.common.collect.ImmutableMap$Builder.put:(Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/collect/ImmutableMap$Builder;
10: ldc "milliseconds"
getstatic java.util.concurrent.TimeUnit.MILLISECONDS:Ljava/util/concurrent/TimeUnit;
invokevirtual com.google.common.collect.ImmutableMap$Builder.put:(Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/collect/ImmutableMap$Builder;
11: ldc "s"
getstatic java.util.concurrent.TimeUnit.SECONDS:Ljava/util/concurrent/TimeUnit;
invokevirtual com.google.common.collect.ImmutableMap$Builder.put:(Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/collect/ImmutableMap$Builder;
12: ldc "second"
getstatic java.util.concurrent.TimeUnit.SECONDS:Ljava/util/concurrent/TimeUnit;
invokevirtual com.google.common.collect.ImmutableMap$Builder.put:(Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/collect/ImmutableMap$Builder;
13: ldc "seconds"
getstatic java.util.concurrent.TimeUnit.SECONDS:Ljava/util/concurrent/TimeUnit;
invokevirtual com.google.common.collect.ImmutableMap$Builder.put:(Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/collect/ImmutableMap$Builder;
14: ldc "m"
getstatic java.util.concurrent.TimeUnit.MINUTES:Ljava/util/concurrent/TimeUnit;
invokevirtual com.google.common.collect.ImmutableMap$Builder.put:(Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/collect/ImmutableMap$Builder;
15: ldc "min"
getstatic java.util.concurrent.TimeUnit.MINUTES:Ljava/util/concurrent/TimeUnit;
invokevirtual com.google.common.collect.ImmutableMap$Builder.put:(Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/collect/ImmutableMap$Builder;
16: ldc "mins"
getstatic java.util.concurrent.TimeUnit.MINUTES:Ljava/util/concurrent/TimeUnit;
invokevirtual com.google.common.collect.ImmutableMap$Builder.put:(Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/collect/ImmutableMap$Builder;
17: ldc "minute"
getstatic java.util.concurrent.TimeUnit.MINUTES:Ljava/util/concurrent/TimeUnit;
invokevirtual com.google.common.collect.ImmutableMap$Builder.put:(Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/collect/ImmutableMap$Builder;
18: ldc "minutes"
getstatic java.util.concurrent.TimeUnit.MINUTES:Ljava/util/concurrent/TimeUnit;
invokevirtual com.google.common.collect.ImmutableMap$Builder.put:(Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/collect/ImmutableMap$Builder;
19: ldc "h"
getstatic java.util.concurrent.TimeUnit.HOURS:Ljava/util/concurrent/TimeUnit;
invokevirtual com.google.common.collect.ImmutableMap$Builder.put:(Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/collect/ImmutableMap$Builder;
20: ldc "hour"
getstatic java.util.concurrent.TimeUnit.HOURS:Ljava/util/concurrent/TimeUnit;
invokevirtual com.google.common.collect.ImmutableMap$Builder.put:(Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/collect/ImmutableMap$Builder;
21: ldc "hours"
getstatic java.util.concurrent.TimeUnit.HOURS:Ljava/util/concurrent/TimeUnit;
invokevirtual com.google.common.collect.ImmutableMap$Builder.put:(Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/collect/ImmutableMap$Builder;
22: ldc "d"
getstatic java.util.concurrent.TimeUnit.DAYS:Ljava/util/concurrent/TimeUnit;
invokevirtual com.google.common.collect.ImmutableMap$Builder.put:(Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/collect/ImmutableMap$Builder;
23: ldc "day"
getstatic java.util.concurrent.TimeUnit.DAYS:Ljava/util/concurrent/TimeUnit;
invokevirtual com.google.common.collect.ImmutableMap$Builder.put:(Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/collect/ImmutableMap$Builder;
24: ldc "days"
getstatic java.util.concurrent.TimeUnit.DAYS:Ljava/util/concurrent/TimeUnit;
invokevirtual com.google.common.collect.ImmutableMap$Builder.put:(Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/collect/ImmutableMap$Builder;
25: invokevirtual com.google.common.collect.ImmutableMap$Builder.build:()Lcom/google/common/collect/ImmutableMap;
26: putstatic io.dropwizard.util.Duration.SUFFIXES:Lcom/google/common/collect/ImmutableMap;
27: return
LocalVariableTable:
Start End Slot Name Signature
public static io.dropwizard.util.Duration nanoseconds(long);
descriptor: (J)Lio/dropwizard/util/Duration;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=2, args_size=1
start local 0 0: new io.dropwizard.util.Duration
dup
lload 0
getstatic java.util.concurrent.TimeUnit.NANOSECONDS:Ljava/util/concurrent/TimeUnit;
invokespecial io.dropwizard.util.Duration.<init>:(JLjava/util/concurrent/TimeUnit;)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.Duration microseconds(long);
descriptor: (J)Lio/dropwizard/util/Duration;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=2, args_size=1
start local 0 0: new io.dropwizard.util.Duration
dup
lload 0
getstatic java.util.concurrent.TimeUnit.MICROSECONDS:Ljava/util/concurrent/TimeUnit;
invokespecial io.dropwizard.util.Duration.<init>:(JLjava/util/concurrent/TimeUnit;)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.Duration milliseconds(long);
descriptor: (J)Lio/dropwizard/util/Duration;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=2, args_size=1
start local 0 0: new io.dropwizard.util.Duration
dup
lload 0
getstatic java.util.concurrent.TimeUnit.MILLISECONDS:Ljava/util/concurrent/TimeUnit;
invokespecial io.dropwizard.util.Duration.<init>:(JLjava/util/concurrent/TimeUnit;)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.Duration seconds(long);
descriptor: (J)Lio/dropwizard/util/Duration;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=2, args_size=1
start local 0 0: new io.dropwizard.util.Duration
dup
lload 0
getstatic java.util.concurrent.TimeUnit.SECONDS:Ljava/util/concurrent/TimeUnit;
invokespecial io.dropwizard.util.Duration.<init>:(JLjava/util/concurrent/TimeUnit;)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.Duration minutes(long);
descriptor: (J)Lio/dropwizard/util/Duration;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=2, args_size=1
start local 0 0: new io.dropwizard.util.Duration
dup
lload 0
getstatic java.util.concurrent.TimeUnit.MINUTES:Ljava/util/concurrent/TimeUnit;
invokespecial io.dropwizard.util.Duration.<init>:(JLjava/util/concurrent/TimeUnit;)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.Duration hours(long);
descriptor: (J)Lio/dropwizard/util/Duration;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=2, args_size=1
start local 0 0: new io.dropwizard.util.Duration
dup
lload 0
getstatic java.util.concurrent.TimeUnit.HOURS:Ljava/util/concurrent/TimeUnit;
invokespecial io.dropwizard.util.Duration.<init>:(JLjava/util/concurrent/TimeUnit;)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.Duration days(long);
descriptor: (J)Lio/dropwizard/util/Duration;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=2, args_size=1
start local 0 0: new io.dropwizard.util.Duration
dup
lload 0
getstatic java.util.concurrent.TimeUnit.DAYS:Ljava/util/concurrent/TimeUnit;
invokespecial io.dropwizard.util.Duration.<init>:(JLjava/util/concurrent/TimeUnit;)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.Duration parse(java.lang.String);
descriptor: (Ljava/lang/String;)Lio/dropwizard/util/Duration;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=5, args_size=1
start local 0 0: getstatic io.dropwizard.util.Duration.DURATION_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
new java.lang.StringBuilder
dup
ldc "Invalid duration: "
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;
invokestatic com.google.common.base.Preconditions.checkArgument:(ZLjava/lang/Object;)V
2: 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 3: getstatic io.dropwizard.util.Duration.SUFFIXES:Lcom/google/common/collect/ImmutableMap;
aload 1
iconst_2
invokevirtual java.util.regex.Matcher.group:(I)Ljava/lang/String;
invokevirtual com.google.common.collect.ImmutableMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.concurrent.TimeUnit
astore 4
start local 4 4: aload 4
ifnonnull 6
5: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "Invalid duration: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc ". Wrong time 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
6: StackMap locals: java.util.regex.Matcher long java.util.concurrent.TimeUnit
StackMap stack:
new io.dropwizard.util.Duration
dup
lload 2
aload 4
invokespecial io.dropwizard.util.Duration.<init>:(JLjava/util/concurrent/TimeUnit;)V
areturn
end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 duration Ljava/lang/String;
1 7 1 matcher Ljava/util/regex/Matcher;
3 7 2 count J
4 7 4 unit Ljava/util/concurrent/TimeUnit;
RuntimeVisibleAnnotations:
com.fasterxml.jackson.annotation.JsonCreator()
MethodParameters:
Name Flags
duration
private void <init>(long, java.util.concurrent.TimeUnit);
descriptor: (JLjava/util/concurrent/TimeUnit;)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.Duration.count:J
2: aload 0
aload 3
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.concurrent.TimeUnit
putfield io.dropwizard.util.Duration.unit:Ljava/util/concurrent/TimeUnit;
3: return
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lio/dropwizard/util/Duration;
0 4 1 count J
0 4 3 unit Ljava/util/concurrent/TimeUnit;
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.Duration.count:J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/dropwizard/util/Duration;
public java.util.concurrent.TimeUnit getUnit();
descriptor: ()Ljava/util/concurrent/TimeUnit;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.dropwizard.util.Duration.unit:Ljava/util/concurrent/TimeUnit;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/dropwizard/util/Duration;
public long toNanoseconds();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: getstatic java.util.concurrent.TimeUnit.NANOSECONDS:Ljava/util/concurrent/TimeUnit;
aload 0
getfield io.dropwizard.util.Duration.count:J
aload 0
getfield io.dropwizard.util.Duration.unit:Ljava/util/concurrent/TimeUnit;
invokevirtual java.util.concurrent.TimeUnit.convert:(JLjava/util/concurrent/TimeUnit;)J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/dropwizard/util/Duration;
public long toMicroseconds();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: getstatic java.util.concurrent.TimeUnit.MICROSECONDS:Ljava/util/concurrent/TimeUnit;
aload 0
getfield io.dropwizard.util.Duration.count:J
aload 0
getfield io.dropwizard.util.Duration.unit:Ljava/util/concurrent/TimeUnit;
invokevirtual java.util.concurrent.TimeUnit.convert:(JLjava/util/concurrent/TimeUnit;)J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/dropwizard/util/Duration;
public long toMilliseconds();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: getstatic java.util.concurrent.TimeUnit.MILLISECONDS:Ljava/util/concurrent/TimeUnit;
aload 0
getfield io.dropwizard.util.Duration.count:J
aload 0
getfield io.dropwizard.util.Duration.unit:Ljava/util/concurrent/TimeUnit;
invokevirtual java.util.concurrent.TimeUnit.convert:(JLjava/util/concurrent/TimeUnit;)J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/dropwizard/util/Duration;
public long toSeconds();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: getstatic java.util.concurrent.TimeUnit.SECONDS:Ljava/util/concurrent/TimeUnit;
aload 0
getfield io.dropwizard.util.Duration.count:J
aload 0
getfield io.dropwizard.util.Duration.unit:Ljava/util/concurrent/TimeUnit;
invokevirtual java.util.concurrent.TimeUnit.convert:(JLjava/util/concurrent/TimeUnit;)J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/dropwizard/util/Duration;
public long toMinutes();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: getstatic java.util.concurrent.TimeUnit.MINUTES:Ljava/util/concurrent/TimeUnit;
aload 0
getfield io.dropwizard.util.Duration.count:J
aload 0
getfield io.dropwizard.util.Duration.unit:Ljava/util/concurrent/TimeUnit;
invokevirtual java.util.concurrent.TimeUnit.convert:(JLjava/util/concurrent/TimeUnit;)J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/dropwizard/util/Duration;
public long toHours();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: getstatic java.util.concurrent.TimeUnit.HOURS:Ljava/util/concurrent/TimeUnit;
aload 0
getfield io.dropwizard.util.Duration.count:J
aload 0
getfield io.dropwizard.util.Duration.unit:Ljava/util/concurrent/TimeUnit;
invokevirtual java.util.concurrent.TimeUnit.convert:(JLjava/util/concurrent/TimeUnit;)J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/dropwizard/util/Duration;
public long toDays();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: getstatic java.util.concurrent.TimeUnit.DAYS:Ljava/util/concurrent/TimeUnit;
aload 0
getfield io.dropwizard.util.Duration.count:J
aload 0
getfield io.dropwizard.util.Duration.unit:Ljava/util/concurrent/TimeUnit;
invokevirtual java.util.concurrent.TimeUnit.convert:(JLjava/util/concurrent/TimeUnit;)J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/dropwizard/util/Duration;
public boolean equals(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, 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.Duration
astore 2
start local 2 5: aload 0
getfield io.dropwizard.util.Duration.count:J
aload 2
getfield io.dropwizard.util.Duration.count:J
lcmp
ifne 6
aload 0
getfield io.dropwizard.util.Duration.unit:Ljava/util/concurrent/TimeUnit;
aload 2
getfield io.dropwizard.util.Duration.unit:Ljava/util/concurrent/TimeUnit;
if_acmpne 6
iconst_1
ireturn
StackMap locals: io.dropwizard.util.Duration
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/Duration;
0 7 1 obj Ljava/lang/Object;
5 7 2 duration Lio/dropwizard/util/Duration;
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.Duration.count:J
aload 0
getfield io.dropwizard.util.Duration.count:J
bipush 32
lushr
lxor
l2i
imul
aload 0
getfield io.dropwizard.util.Duration.unit:Ljava/util/concurrent/TimeUnit;
invokevirtual java.util.concurrent.TimeUnit.hashCode:()I
iadd
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/dropwizard/util/Duration;
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.Duration.unit:Ljava/util/concurrent/TimeUnit;
invokevirtual java.util.concurrent.TimeUnit.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.Duration.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.Duration.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/Duration;
1 4 1 units Ljava/lang/String;
RuntimeVisibleAnnotations:
com.fasterxml.jackson.annotation.JsonValue()
public int compareTo(io.dropwizard.util.Duration);
descriptor: (Lio/dropwizard/util/Duration;)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.Duration.unit:Ljava/util/concurrent/TimeUnit;
aload 1
getfield io.dropwizard.util.Duration.unit:Ljava/util/concurrent/TimeUnit;
if_acmpne 2
1: aload 0
getfield io.dropwizard.util.Duration.count:J
aload 1
getfield io.dropwizard.util.Duration.count:J
invokestatic java.lang.Long.compare:(JJ)I
ireturn
2: StackMap locals:
StackMap stack:
aload 0
invokevirtual io.dropwizard.util.Duration.toNanoseconds:()J
aload 1
invokevirtual io.dropwizard.util.Duration.toNanoseconds:()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/Duration;
0 3 1 other Lio/dropwizard/util/Duration;
MethodParameters:
Name Flags
other
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.Duration
invokevirtual io.dropwizard.util.Duration.compareTo:(Lio/dropwizard/util/Duration;)I
ireturn
LocalVariableTable:
Start End Slot Name Signature
}
Signature: Ljava/lang/Object;Ljava/lang/Comparable<Lio/dropwizard/util/Duration;>;
SourceFile: "Duration.java"
InnerClasses:
public Builder = com.google.common.collect.ImmutableMap$Builder of com.google.common.collect.ImmutableMap