public final class java.time.temporal.ChronoUnit extends java.lang.Enum<java.time.temporal.ChronoUnit> implements java.time.temporal.TemporalUnit
minor version: 0
major version: 59
flags: flags: (0x4031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER, ACC_ANNOTATION
this_class: java.time.temporal.ChronoUnit
super_class: java.lang.Enum
{
public static final java.time.temporal.ChronoUnit NANOS;
descriptor: Ljava/time/temporal/ChronoUnit;
flags: (0x4019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL, ACC_ANNOTATION
public static final java.time.temporal.ChronoUnit MICROS;
descriptor: Ljava/time/temporal/ChronoUnit;
flags: (0x4019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL, ACC_ANNOTATION
public static final java.time.temporal.ChronoUnit MILLIS;
descriptor: Ljava/time/temporal/ChronoUnit;
flags: (0x4019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL, ACC_ANNOTATION
public static final java.time.temporal.ChronoUnit SECONDS;
descriptor: Ljava/time/temporal/ChronoUnit;
flags: (0x4019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL, ACC_ANNOTATION
public static final java.time.temporal.ChronoUnit MINUTES;
descriptor: Ljava/time/temporal/ChronoUnit;
flags: (0x4019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL, ACC_ANNOTATION
public static final java.time.temporal.ChronoUnit HOURS;
descriptor: Ljava/time/temporal/ChronoUnit;
flags: (0x4019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL, ACC_ANNOTATION
public static final java.time.temporal.ChronoUnit HALF_DAYS;
descriptor: Ljava/time/temporal/ChronoUnit;
flags: (0x4019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL, ACC_ANNOTATION
public static final java.time.temporal.ChronoUnit DAYS;
descriptor: Ljava/time/temporal/ChronoUnit;
flags: (0x4019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL, ACC_ANNOTATION
public static final java.time.temporal.ChronoUnit WEEKS;
descriptor: Ljava/time/temporal/ChronoUnit;
flags: (0x4019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL, ACC_ANNOTATION
public static final java.time.temporal.ChronoUnit MONTHS;
descriptor: Ljava/time/temporal/ChronoUnit;
flags: (0x4019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL, ACC_ANNOTATION
public static final java.time.temporal.ChronoUnit YEARS;
descriptor: Ljava/time/temporal/ChronoUnit;
flags: (0x4019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL, ACC_ANNOTATION
public static final java.time.temporal.ChronoUnit DECADES;
descriptor: Ljava/time/temporal/ChronoUnit;
flags: (0x4019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL, ACC_ANNOTATION
public static final java.time.temporal.ChronoUnit CENTURIES;
descriptor: Ljava/time/temporal/ChronoUnit;
flags: (0x4019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL, ACC_ANNOTATION
public static final java.time.temporal.ChronoUnit MILLENNIA;
descriptor: Ljava/time/temporal/ChronoUnit;
flags: (0x4019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL, ACC_ANNOTATION
public static final java.time.temporal.ChronoUnit ERAS;
descriptor: Ljava/time/temporal/ChronoUnit;
flags: (0x4019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL, ACC_ANNOTATION
public static final java.time.temporal.ChronoUnit FOREVER;
descriptor: Ljava/time/temporal/ChronoUnit;
flags: (0x4019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL, ACC_ANNOTATION
private final java.lang.String name;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.time.Duration duration;
descriptor: Ljava/time/Duration;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private static final java.time.temporal.ChronoUnit[] ENUM$VALUES;
descriptor: [Ljava/time/temporal/ChronoUnit;
flags: (0x101a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=9, locals=0, args_size=0
0: new java.time.temporal.ChronoUnit
dup
ldc "NANOS"
iconst_0
1: ldc "Nanos"
lconst_1
invokestatic java.time.Duration.ofNanos:(J)Ljava/time/Duration;
invokespecial java.time.temporal.ChronoUnit.<init>:(Ljava/lang/String;ILjava/lang/String;Ljava/time/Duration;)V
putstatic java.time.temporal.ChronoUnit.NANOS:Ljava/time/temporal/ChronoUnit;
2: new java.time.temporal.ChronoUnit
dup
ldc "MICROS"
iconst_1
3: ldc "Micros"
ldc 1000
invokestatic java.time.Duration.ofNanos:(J)Ljava/time/Duration;
invokespecial java.time.temporal.ChronoUnit.<init>:(Ljava/lang/String;ILjava/lang/String;Ljava/time/Duration;)V
putstatic java.time.temporal.ChronoUnit.MICROS:Ljava/time/temporal/ChronoUnit;
4: new java.time.temporal.ChronoUnit
dup
ldc "MILLIS"
iconst_2
5: ldc "Millis"
ldc 1000000
invokestatic java.time.Duration.ofNanos:(J)Ljava/time/Duration;
invokespecial java.time.temporal.ChronoUnit.<init>:(Ljava/lang/String;ILjava/lang/String;Ljava/time/Duration;)V
putstatic java.time.temporal.ChronoUnit.MILLIS:Ljava/time/temporal/ChronoUnit;
6: new java.time.temporal.ChronoUnit
dup
ldc "SECONDS"
iconst_3
7: ldc "Seconds"
lconst_1
invokestatic java.time.Duration.ofSeconds:(J)Ljava/time/Duration;
invokespecial java.time.temporal.ChronoUnit.<init>:(Ljava/lang/String;ILjava/lang/String;Ljava/time/Duration;)V
putstatic java.time.temporal.ChronoUnit.SECONDS:Ljava/time/temporal/ChronoUnit;
8: new java.time.temporal.ChronoUnit
dup
ldc "MINUTES"
iconst_4
9: ldc "Minutes"
ldc 60
invokestatic java.time.Duration.ofSeconds:(J)Ljava/time/Duration;
invokespecial java.time.temporal.ChronoUnit.<init>:(Ljava/lang/String;ILjava/lang/String;Ljava/time/Duration;)V
putstatic java.time.temporal.ChronoUnit.MINUTES:Ljava/time/temporal/ChronoUnit;
10: new java.time.temporal.ChronoUnit
dup
ldc "HOURS"
iconst_5
11: ldc "Hours"
ldc 3600
invokestatic java.time.Duration.ofSeconds:(J)Ljava/time/Duration;
invokespecial java.time.temporal.ChronoUnit.<init>:(Ljava/lang/String;ILjava/lang/String;Ljava/time/Duration;)V
putstatic java.time.temporal.ChronoUnit.HOURS:Ljava/time/temporal/ChronoUnit;
12: new java.time.temporal.ChronoUnit
dup
ldc "HALF_DAYS"
bipush 6
13: ldc "HalfDays"
ldc 43200
invokestatic java.time.Duration.ofSeconds:(J)Ljava/time/Duration;
invokespecial java.time.temporal.ChronoUnit.<init>:(Ljava/lang/String;ILjava/lang/String;Ljava/time/Duration;)V
putstatic java.time.temporal.ChronoUnit.HALF_DAYS:Ljava/time/temporal/ChronoUnit;
14: new java.time.temporal.ChronoUnit
dup
ldc "DAYS"
bipush 7
15: ldc "Days"
ldc 86400
invokestatic java.time.Duration.ofSeconds:(J)Ljava/time/Duration;
invokespecial java.time.temporal.ChronoUnit.<init>:(Ljava/lang/String;ILjava/lang/String;Ljava/time/Duration;)V
putstatic java.time.temporal.ChronoUnit.DAYS:Ljava/time/temporal/ChronoUnit;
16: new java.time.temporal.ChronoUnit
dup
ldc "WEEKS"
bipush 8
17: ldc "Weeks"
ldc 604800
invokestatic java.time.Duration.ofSeconds:(J)Ljava/time/Duration;
invokespecial java.time.temporal.ChronoUnit.<init>:(Ljava/lang/String;ILjava/lang/String;Ljava/time/Duration;)V
putstatic java.time.temporal.ChronoUnit.WEEKS:Ljava/time/temporal/ChronoUnit;
18: new java.time.temporal.ChronoUnit
dup
ldc "MONTHS"
bipush 9
19: ldc "Months"
ldc 2629746
invokestatic java.time.Duration.ofSeconds:(J)Ljava/time/Duration;
invokespecial java.time.temporal.ChronoUnit.<init>:(Ljava/lang/String;ILjava/lang/String;Ljava/time/Duration;)V
putstatic java.time.temporal.ChronoUnit.MONTHS:Ljava/time/temporal/ChronoUnit;
20: new java.time.temporal.ChronoUnit
dup
ldc "YEARS"
bipush 10
21: ldc "Years"
ldc 31556952
invokestatic java.time.Duration.ofSeconds:(J)Ljava/time/Duration;
invokespecial java.time.temporal.ChronoUnit.<init>:(Ljava/lang/String;ILjava/lang/String;Ljava/time/Duration;)V
putstatic java.time.temporal.ChronoUnit.YEARS:Ljava/time/temporal/ChronoUnit;
22: new java.time.temporal.ChronoUnit
dup
ldc "DECADES"
bipush 11
23: ldc "Decades"
ldc 315569520
invokestatic java.time.Duration.ofSeconds:(J)Ljava/time/Duration;
invokespecial java.time.temporal.ChronoUnit.<init>:(Ljava/lang/String;ILjava/lang/String;Ljava/time/Duration;)V
putstatic java.time.temporal.ChronoUnit.DECADES:Ljava/time/temporal/ChronoUnit;
24: new java.time.temporal.ChronoUnit
dup
ldc "CENTURIES"
bipush 12
25: ldc "Centuries"
ldc 3155695200
invokestatic java.time.Duration.ofSeconds:(J)Ljava/time/Duration;
invokespecial java.time.temporal.ChronoUnit.<init>:(Ljava/lang/String;ILjava/lang/String;Ljava/time/Duration;)V
putstatic java.time.temporal.ChronoUnit.CENTURIES:Ljava/time/temporal/ChronoUnit;
26: new java.time.temporal.ChronoUnit
dup
ldc "MILLENNIA"
bipush 13
27: ldc "Millennia"
ldc 31556952000
invokestatic java.time.Duration.ofSeconds:(J)Ljava/time/Duration;
invokespecial java.time.temporal.ChronoUnit.<init>:(Ljava/lang/String;ILjava/lang/String;Ljava/time/Duration;)V
putstatic java.time.temporal.ChronoUnit.MILLENNIA:Ljava/time/temporal/ChronoUnit;
28: new java.time.temporal.ChronoUnit
dup
ldc "ERAS"
bipush 14
29: ldc "Eras"
ldc 31556952000000000
invokestatic java.time.Duration.ofSeconds:(J)Ljava/time/Duration;
invokespecial java.time.temporal.ChronoUnit.<init>:(Ljava/lang/String;ILjava/lang/String;Ljava/time/Duration;)V
putstatic java.time.temporal.ChronoUnit.ERAS:Ljava/time/temporal/ChronoUnit;
30: new java.time.temporal.ChronoUnit
dup
ldc "FOREVER"
bipush 15
31: ldc "Forever"
ldc 9223372036854775807
ldc 999999999
invokestatic java.time.Duration.ofSeconds:(JJ)Ljava/time/Duration;
invokespecial java.time.temporal.ChronoUnit.<init>:(Ljava/lang/String;ILjava/lang/String;Ljava/time/Duration;)V
putstatic java.time.temporal.ChronoUnit.FOREVER:Ljava/time/temporal/ChronoUnit;
32: bipush 16
anewarray java.time.temporal.ChronoUnit
dup
iconst_0
getstatic java.time.temporal.ChronoUnit.NANOS:Ljava/time/temporal/ChronoUnit;
aastore
dup
iconst_1
getstatic java.time.temporal.ChronoUnit.MICROS:Ljava/time/temporal/ChronoUnit;
aastore
dup
iconst_2
getstatic java.time.temporal.ChronoUnit.MILLIS:Ljava/time/temporal/ChronoUnit;
aastore
dup
iconst_3
getstatic java.time.temporal.ChronoUnit.SECONDS:Ljava/time/temporal/ChronoUnit;
aastore
dup
iconst_4
getstatic java.time.temporal.ChronoUnit.MINUTES:Ljava/time/temporal/ChronoUnit;
aastore
dup
iconst_5
getstatic java.time.temporal.ChronoUnit.HOURS:Ljava/time/temporal/ChronoUnit;
aastore
dup
bipush 6
getstatic java.time.temporal.ChronoUnit.HALF_DAYS:Ljava/time/temporal/ChronoUnit;
aastore
dup
bipush 7
getstatic java.time.temporal.ChronoUnit.DAYS:Ljava/time/temporal/ChronoUnit;
aastore
dup
bipush 8
getstatic java.time.temporal.ChronoUnit.WEEKS:Ljava/time/temporal/ChronoUnit;
aastore
dup
bipush 9
getstatic java.time.temporal.ChronoUnit.MONTHS:Ljava/time/temporal/ChronoUnit;
aastore
dup
bipush 10
getstatic java.time.temporal.ChronoUnit.YEARS:Ljava/time/temporal/ChronoUnit;
aastore
dup
bipush 11
getstatic java.time.temporal.ChronoUnit.DECADES:Ljava/time/temporal/ChronoUnit;
aastore
dup
bipush 12
getstatic java.time.temporal.ChronoUnit.CENTURIES:Ljava/time/temporal/ChronoUnit;
aastore
dup
bipush 13
getstatic java.time.temporal.ChronoUnit.MILLENNIA:Ljava/time/temporal/ChronoUnit;
aastore
dup
bipush 14
getstatic java.time.temporal.ChronoUnit.ERAS:Ljava/time/temporal/ChronoUnit;
aastore
dup
bipush 15
getstatic java.time.temporal.ChronoUnit.FOREVER:Ljava/time/temporal/ChronoUnit;
aastore
putstatic java.time.temporal.ChronoUnit.ENUM$VALUES:[Ljava/time/temporal/ChronoUnit;
return
LocalVariableTable:
Start End Slot Name Signature
private void <init>(java.lang.String, int, java.lang.String, java.time.Duration);
descriptor: (Ljava/lang/String;ILjava/lang/String;Ljava/time/Duration;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=5, args_size=5
start local 0 start local 3 start local 4 0: aload 0
aload 1
iload 2
invokespecial java.lang.Enum.<init>:(Ljava/lang/String;I)V
1: aload 0
aload 3
putfield java.time.temporal.ChronoUnit.name:Ljava/lang/String;
2: aload 0
aload 4
putfield java.time.temporal.ChronoUnit.duration:Ljava/time/Duration;
3: return
end local 4 end local 3 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljava/time/temporal/ChronoUnit;
0 4 3 name Ljava/lang/String;
0 4 4 estimatedDuration Ljava/time/Duration;
MethodParameters:
Name Flags
$enum$name
$enum$ordinal
name
estimatedDuration
public java.time.Duration getDuration();
descriptor: ()Ljava/time/Duration;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield java.time.temporal.ChronoUnit.duration:Ljava/time/Duration;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/time/temporal/ChronoUnit;
public boolean isDurationEstimated();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getstatic java.time.temporal.ChronoUnit.DAYS:Ljava/time/temporal/ChronoUnit;
invokevirtual java.time.temporal.ChronoUnit.compareTo:(Ljava/lang/Enum;)I
iflt 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 Ljava/time/temporal/ChronoUnit;
public boolean isDateBased();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getstatic java.time.temporal.ChronoUnit.DAYS:Ljava/time/temporal/ChronoUnit;
invokevirtual java.time.temporal.ChronoUnit.compareTo:(Ljava/lang/Enum;)I
iflt 1
aload 0
getstatic java.time.temporal.ChronoUnit.FOREVER:Ljava/time/temporal/ChronoUnit;
if_acmpeq 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 Ljava/time/temporal/ChronoUnit;
public boolean isTimeBased();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getstatic java.time.temporal.ChronoUnit.DAYS:Ljava/time/temporal/ChronoUnit;
invokevirtual java.time.temporal.ChronoUnit.compareTo:(Ljava/lang/Enum;)I
ifge 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 Ljava/time/temporal/ChronoUnit;
public boolean isSupportedBy(java.time.temporal.Temporal);
descriptor: (Ljava/time/temporal/Temporal;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
aload 0
invokeinterface java.time.temporal.Temporal.isSupported:(Ljava/time/temporal/TemporalUnit;)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/time/temporal/ChronoUnit;
0 1 1 temporal Ljava/time/temporal/Temporal;
MethodParameters:
Name Flags
temporal
public <R extends java.time.temporal.Temporal> R addTo(R, );
descriptor: (Ljava/time/temporal/Temporal;J)Ljava/time/temporal/Temporal;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 1
lload 2
aload 0
invokeinterface java.time.temporal.Temporal.plus:(JLjava/time/temporal/TemporalUnit;)Ljava/time/temporal/Temporal;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/time/temporal/ChronoUnit;
0 1 1 temporal TR;
0 1 2 amount J
Signature: <R::Ljava/time/temporal/Temporal;>(TR;J)TR;
MethodParameters:
Name Flags
temporal
amount
public long between(java.time.temporal.Temporal, java.time.temporal.Temporal);
descriptor: (Ljava/time/temporal/Temporal;Ljava/time/temporal/Temporal;)J
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 1
aload 2
aload 0
invokeinterface java.time.temporal.Temporal.until:(Ljava/time/temporal/Temporal;Ljava/time/temporal/TemporalUnit;)J
lreturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/time/temporal/ChronoUnit;
0 1 1 temporal1Inclusive Ljava/time/temporal/Temporal;
0 1 2 temporal2Exclusive Ljava/time/temporal/Temporal;
MethodParameters:
Name Flags
temporal1Inclusive
temporal2Exclusive
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield java.time.temporal.ChronoUnit.name:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/time/temporal/ChronoUnit;
public static java.time.temporal.ChronoUnit[] values();
descriptor: ()[Ljava/time/temporal/ChronoUnit;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=3, args_size=0
0: getstatic java.time.temporal.ChronoUnit.ENUM$VALUES:[Ljava/time/temporal/ChronoUnit;
dup
astore 0
iconst_0
aload 0
arraylength
dup
istore 1
anewarray java.time.temporal.ChronoUnit
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 java.time.temporal.ChronoUnit valueOf(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/time/temporal/ChronoUnit;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
0: ldc Ljava/time/temporal/ChronoUnit;
aload 0
invokestatic java.lang.Enum.valueOf:(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Enum;
checkcast java.time.temporal.ChronoUnit
areturn
LocalVariableTable:
Start End Slot Name Signature
MethodParameters:
Name Flags
name
}
Signature: Ljava/lang/Enum<Ljava/time/temporal/ChronoUnit;>;Ljava/time/temporal/TemporalUnit;
SourceFile: "ChronoUnit.java"