public class javafx.util.Duration implements java.lang.Comparable<javafx.util.Duration>, java.io.Serializable
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: javafx.util.Duration
super_class: java.lang.Object
{
public static final javafx.util.Duration ZERO;
descriptor: Ljavafx/util/Duration;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
public static final javafx.util.Duration ONE;
descriptor: Ljavafx/util/Duration;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
public static final javafx.util.Duration INDEFINITE;
descriptor: Ljavafx/util/Duration;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
public static final javafx.util.Duration UNKNOWN;
descriptor: Ljavafx/util/Duration;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
private final double millis;
descriptor: D
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=0, args_size=0
0: new javafx.util.Duration
dup
dconst_0
invokespecial javafx.util.Duration.<init>:(D)V
putstatic javafx.util.Duration.ZERO:Ljavafx/util/Duration;
1: new javafx.util.Duration
dup
dconst_1
invokespecial javafx.util.Duration.<init>:(D)V
putstatic javafx.util.Duration.ONE:Ljavafx/util/Duration;
2: new javafx.util.Duration
dup
ldc Infinity
invokespecial javafx.util.Duration.<init>:(D)V
putstatic javafx.util.Duration.INDEFINITE:Ljavafx/util/Duration;
3: new javafx.util.Duration
dup
ldc NaN
invokespecial javafx.util.Duration.<init>:(D)V
putstatic javafx.util.Duration.UNKNOWN:Ljavafx/util/Duration;
return
LocalVariableTable:
Start End Slot Name Signature
public static javafx.util.Duration valueOf(java.lang.String);
descriptor: (Ljava/lang/String;)Ljavafx/util/Duration;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=5, args_size=1
start local 0 0: iconst_m1
istore 1
start local 1 1: iconst_0
istore 2
start local 2 2: goto 8
3: StackMap locals: int int
StackMap stack:
aload 0
iload 2
invokevirtual java.lang.String.charAt:(I)C
istore 3
start local 3 4: iload 3
invokestatic java.lang.Character.isDigit:(C)Z
ifne 7
iload 3
bipush 46
if_icmpeq 7
iload 3
bipush 45
if_icmpeq 7
5: iload 2
istore 1
6: goto 9
end local 3 7: StackMap locals:
StackMap stack:
iinc 2 1
StackMap locals:
StackMap stack:
8: iload 2
aload 0
invokevirtual java.lang.String.length:()I
if_icmplt 3
end local 2 9: StackMap locals:
StackMap stack:
iload 1
iconst_m1
if_icmpne 11
10: new java.lang.IllegalArgumentException
dup
ldc "The time parameter must have a suffix of [ms|s|m|h]"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
11: StackMap locals:
StackMap stack:
aload 0
iconst_0
iload 1
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
invokestatic java.lang.Double.parseDouble:(Ljava/lang/String;)D
dstore 2
start local 2 12: aload 0
iload 1
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
astore 4
start local 4 13: ldc "ms"
aload 4
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 15
14: dload 2
invokestatic javafx.util.Duration.millis:(D)Ljavafx/util/Duration;
areturn
15: StackMap locals: double java.lang.String
StackMap stack:
ldc "s"
aload 4
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 17
16: dload 2
invokestatic javafx.util.Duration.seconds:(D)Ljavafx/util/Duration;
areturn
17: StackMap locals:
StackMap stack:
ldc "m"
aload 4
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 19
18: dload 2
invokestatic javafx.util.Duration.minutes:(D)Ljavafx/util/Duration;
areturn
19: StackMap locals:
StackMap stack:
ldc "h"
aload 4
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 21
20: dload 2
invokestatic javafx.util.Duration.hours:(D)Ljavafx/util/Duration;
areturn
21: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
ldc "The time parameter must have a suffix of [ms|s|m|h]"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 22 0 time Ljava/lang/String;
1 22 1 index I
2 9 2 i I
4 7 3 c C
12 22 2 value D
13 22 4 suffix Ljava/lang/String;
MethodParameters:
Name Flags
time
public static javafx.util.Duration millis(double);
descriptor: (D)Ljavafx/util/Duration;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: dload 0
dconst_0
dcmpl
ifne 2
1: getstatic javafx.util.Duration.ZERO:Ljavafx/util/Duration;
areturn
2: StackMap locals:
StackMap stack:
dload 0
dconst_1
dcmpl
ifne 4
3: getstatic javafx.util.Duration.ONE:Ljavafx/util/Duration;
areturn
4: StackMap locals:
StackMap stack:
dload 0
ldc Infinity
dcmpl
ifne 6
5: getstatic javafx.util.Duration.INDEFINITE:Ljavafx/util/Duration;
areturn
6: StackMap locals:
StackMap stack:
dload 0
invokestatic java.lang.Double.isNaN:(D)Z
ifeq 8
7: getstatic javafx.util.Duration.UNKNOWN:Ljavafx/util/Duration;
areturn
8: StackMap locals:
StackMap stack:
new javafx.util.Duration
dup
dload 0
invokespecial javafx.util.Duration.<init>:(D)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 ms D
MethodParameters:
Name Flags
ms
public static javafx.util.Duration seconds(double);
descriptor: (D)Ljavafx/util/Duration;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=2, args_size=1
start local 0 0: dload 0
dconst_0
dcmpl
ifne 2
1: getstatic javafx.util.Duration.ZERO:Ljavafx/util/Duration;
areturn
2: StackMap locals:
StackMap stack:
dload 0
ldc Infinity
dcmpl
ifne 4
3: getstatic javafx.util.Duration.INDEFINITE:Ljavafx/util/Duration;
areturn
4: StackMap locals:
StackMap stack:
dload 0
invokestatic java.lang.Double.isNaN:(D)Z
ifeq 6
5: getstatic javafx.util.Duration.UNKNOWN:Ljavafx/util/Duration;
areturn
6: StackMap locals:
StackMap stack:
new javafx.util.Duration
dup
dload 0
ldc 1000.0
dmul
invokespecial javafx.util.Duration.<init>:(D)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 s D
MethodParameters:
Name Flags
s
public static javafx.util.Duration minutes(double);
descriptor: (D)Ljavafx/util/Duration;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=2, args_size=1
start local 0 0: dload 0
dconst_0
dcmpl
ifne 2
1: getstatic javafx.util.Duration.ZERO:Ljavafx/util/Duration;
areturn
2: StackMap locals:
StackMap stack:
dload 0
ldc Infinity
dcmpl
ifne 4
3: getstatic javafx.util.Duration.INDEFINITE:Ljavafx/util/Duration;
areturn
4: StackMap locals:
StackMap stack:
dload 0
invokestatic java.lang.Double.isNaN:(D)Z
ifeq 6
5: getstatic javafx.util.Duration.UNKNOWN:Ljavafx/util/Duration;
areturn
6: StackMap locals:
StackMap stack:
new javafx.util.Duration
dup
dload 0
ldc 60000.0
dmul
invokespecial javafx.util.Duration.<init>:(D)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 m D
MethodParameters:
Name Flags
m
public static javafx.util.Duration hours(double);
descriptor: (D)Ljavafx/util/Duration;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=2, args_size=1
start local 0 0: dload 0
dconst_0
dcmpl
ifne 2
1: getstatic javafx.util.Duration.ZERO:Ljavafx/util/Duration;
areturn
2: StackMap locals:
StackMap stack:
dload 0
ldc Infinity
dcmpl
ifne 4
3: getstatic javafx.util.Duration.INDEFINITE:Ljavafx/util/Duration;
areturn
4: StackMap locals:
StackMap stack:
dload 0
invokestatic java.lang.Double.isNaN:(D)Z
ifeq 6
5: getstatic javafx.util.Duration.UNKNOWN:Ljavafx/util/Duration;
areturn
6: StackMap locals:
StackMap stack:
new javafx.util.Duration
dup
dload 0
ldc 3600000.0
dmul
invokespecial javafx.util.Duration.<init>:(D)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 h D
MethodParameters:
Name Flags
h
public void <init>(double);
descriptor: (D)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
dload 1
putfield javafx.util.Duration.millis:D
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljavafx/util/Duration;
0 3 1 millis D
RuntimeVisibleParameterAnnotations:
0:
javafx.beans.NamedArg(value = "millis")
MethodParameters:
Name Flags
millis
public double toMillis();
descriptor: ()D
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield javafx.util.Duration.millis:D
dreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavafx/util/Duration;
public double toSeconds();
descriptor: ()D
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
getfield javafx.util.Duration.millis:D
ldc 1000.0
ddiv
dreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavafx/util/Duration;
public double toMinutes();
descriptor: ()D
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
getfield javafx.util.Duration.millis:D
ldc 60000.0
ddiv
dreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavafx/util/Duration;
public double toHours();
descriptor: ()D
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
getfield javafx.util.Duration.millis:D
ldc 3600000.0
ddiv
dreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavafx/util/Duration;
public javafx.util.Duration add(javafx.util.Duration);
descriptor: (Ljavafx/util/Duration;)Ljavafx/util/Duration;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield javafx.util.Duration.millis:D
aload 1
getfield javafx.util.Duration.millis:D
dadd
invokestatic javafx.util.Duration.millis:(D)Ljavafx/util/Duration;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavafx/util/Duration;
0 1 1 other Ljavafx/util/Duration;
MethodParameters:
Name Flags
other
public javafx.util.Duration subtract(javafx.util.Duration);
descriptor: (Ljavafx/util/Duration;)Ljavafx/util/Duration;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield javafx.util.Duration.millis:D
aload 1
getfield javafx.util.Duration.millis:D
dsub
invokestatic javafx.util.Duration.millis:(D)Ljavafx/util/Duration;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavafx/util/Duration;
0 1 1 other Ljavafx/util/Duration;
MethodParameters:
Name Flags
other
public javafx.util.Duration multiply(javafx.util.Duration);
descriptor: (Ljavafx/util/Duration;)Ljavafx/util/Duration;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield javafx.util.Duration.millis:D
aload 1
getfield javafx.util.Duration.millis:D
dmul
invokestatic javafx.util.Duration.millis:(D)Ljavafx/util/Duration;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavafx/util/Duration;
0 1 1 other Ljavafx/util/Duration;
RuntimeVisibleAnnotations:
java.lang.Deprecated()
MethodParameters:
Name Flags
other
public javafx.util.Duration multiply(double);
descriptor: (D)Ljavafx/util/Duration;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield javafx.util.Duration.millis:D
dload 1
dmul
invokestatic javafx.util.Duration.millis:(D)Ljavafx/util/Duration;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavafx/util/Duration;
0 1 1 n D
MethodParameters:
Name Flags
n
public javafx.util.Duration divide(double);
descriptor: (D)Ljavafx/util/Duration;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield javafx.util.Duration.millis:D
dload 1
ddiv
invokestatic javafx.util.Duration.millis:(D)Ljavafx/util/Duration;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavafx/util/Duration;
0 1 1 n D
MethodParameters:
Name Flags
n
public javafx.util.Duration divide(javafx.util.Duration);
descriptor: (Ljavafx/util/Duration;)Ljavafx/util/Duration;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield javafx.util.Duration.millis:D
aload 1
getfield javafx.util.Duration.millis:D
ddiv
invokestatic javafx.util.Duration.millis:(D)Ljavafx/util/Duration;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavafx/util/Duration;
0 1 1 other Ljavafx/util/Duration;
RuntimeVisibleAnnotations:
java.lang.Deprecated()
MethodParameters:
Name Flags
other
public javafx.util.Duration negate();
descriptor: ()Ljavafx/util/Duration;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield javafx.util.Duration.millis:D
dneg
invokestatic javafx.util.Duration.millis:(D)Ljavafx/util/Duration;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavafx/util/Duration;
public boolean isIndefinite();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
getfield javafx.util.Duration.millis:D
ldc Infinity
dcmpl
ifne 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljavafx/util/Duration;
public boolean isUnknown();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield javafx.util.Duration.millis:D
invokestatic java.lang.Double.isNaN:(D)Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavafx/util/Duration;
public boolean lessThan(javafx.util.Duration);
descriptor: (Ljavafx/util/Duration;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield javafx.util.Duration.millis:D
aload 1
getfield javafx.util.Duration.millis:D
dcmpg
ifge 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 Ljavafx/util/Duration;
0 2 1 other Ljavafx/util/Duration;
MethodParameters:
Name Flags
other
public boolean lessThanOrEqualTo(javafx.util.Duration);
descriptor: (Ljavafx/util/Duration;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield javafx.util.Duration.millis:D
aload 1
getfield javafx.util.Duration.millis:D
dcmpg
ifgt 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 Ljavafx/util/Duration;
0 2 1 other Ljavafx/util/Duration;
MethodParameters:
Name Flags
other
public boolean greaterThan(javafx.util.Duration);
descriptor: (Ljavafx/util/Duration;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield javafx.util.Duration.millis:D
aload 1
getfield javafx.util.Duration.millis:D
dcmpl
ifle 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 Ljavafx/util/Duration;
0 2 1 other Ljavafx/util/Duration;
MethodParameters:
Name Flags
other
public boolean greaterThanOrEqualTo(javafx.util.Duration);
descriptor: (Ljavafx/util/Duration;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield javafx.util.Duration.millis:D
aload 1
getfield javafx.util.Duration.millis:D
dcmpl
iflt 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 Ljavafx/util/Duration;
0 2 1 other Ljavafx/util/Duration;
MethodParameters:
Name Flags
other
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual javafx.util.Duration.isIndefinite:()Z
ifeq 1
ldc "INDEFINITE"
goto 3
StackMap locals:
StackMap stack:
1: aload 0
invokevirtual javafx.util.Duration.isUnknown:()Z
ifeq 2
ldc "UNKNOWN"
goto 3
StackMap locals:
StackMap stack:
2: new java.lang.StringBuilder
dup
aload 0
getfield javafx.util.Duration.millis:D
invokestatic java.lang.String.valueOf:(D)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc " ms"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
StackMap locals:
StackMap stack: java.lang.String
3: areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljavafx/util/Duration;
public int compareTo(javafx.util.Duration);
descriptor: (Ljavafx/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 javafx.util.Duration.millis:D
aload 1
getfield javafx.util.Duration.millis:D
invokestatic java.lang.Double.compare:(DD)I
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavafx/util/Duration;
0 1 1 d Ljavafx/util/Duration;
MethodParameters:
Name Flags
d
public boolean equals(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 1
aload 0
if_acmpeq 2
aload 1
instanceof javafx.util.Duration
ifeq 1
aload 0
getfield javafx.util.Duration.millis:D
aload 1
checkcast javafx.util.Duration
getfield javafx.util.Duration.millis:D
dcmpl
ifeq 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 Ljavafx/util/Duration;
0 3 1 obj Ljava/lang/Object;
MethodParameters:
Name Flags
obj
public int hashCode();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=1
start local 0 0: aload 0
getfield javafx.util.Duration.millis:D
invokestatic java.lang.Double.doubleToLongBits:(D)J
lstore 1
start local 1 1: lload 1
lload 1
bipush 32
lushr
lxor
l2i
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljavafx/util/Duration;
1 2 1 bits J
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 javafx.util.Duration
invokevirtual javafx.util.Duration.compareTo:(Ljavafx/util/Duration;)I
ireturn
LocalVariableTable:
Start End Slot Name Signature
}
Signature: Ljava/lang/Object;Ljava/lang/Comparable<Ljavafx/util/Duration;>;Ljava/io/Serializable;
SourceFile: "Duration.java"