public class org.finos.legend.engine.persistence.components.IncrementalClock extends java.time.Clock implements java.io.Serializable
{
private java.time.Instant instant;
private final java.time.ZoneId zone;
private final java.lang.Long millis;
public void <init>(java.time.Instant, java.time.ZoneId, long)
{
org.finos.legend.engine.persistence.components.IncrementalClock v;
java.lang.Long v;
long v;
java.time.Instant v;
java.time.ZoneId v;
v := @this: org.finos.legend.engine.persistence.components.IncrementalClock;
v := @parameter: java.time.Instant;
v := @parameter: java.time.ZoneId;
v := @parameter: long;
specialinvoke v.<java.time.Clock: void <init>()>();
v.<org.finos.legend.engine.persistence.components.IncrementalClock: java.time.Instant instant> = v;
v.<org.finos.legend.engine.persistence.components.IncrementalClock: java.time.ZoneId zone> = v;
v = staticinvoke <java.lang.Long: java.lang.Long valueOf(long)>(v);
v.<org.finos.legend.engine.persistence.components.IncrementalClock: java.lang.Long millis> = v;
return;
}
public java.time.ZoneId getZone()
{
org.finos.legend.engine.persistence.components.IncrementalClock v;
java.time.ZoneId v;
v := @this: org.finos.legend.engine.persistence.components.IncrementalClock;
v = v.<org.finos.legend.engine.persistence.components.IncrementalClock: java.time.ZoneId zone>;
return v;
}
public java.time.Clock withZone(java.time.ZoneId)
{
org.finos.legend.engine.persistence.components.IncrementalClock v, v;
long v;
java.time.Instant v;
java.time.ZoneId v, v;
java.lang.Long v;
boolean v;
v := @this: org.finos.legend.engine.persistence.components.IncrementalClock;
v := @parameter: java.time.ZoneId;
v = v.<org.finos.legend.engine.persistence.components.IncrementalClock: java.time.ZoneId zone>;
v = virtualinvoke v.<java.time.ZoneId: boolean equals(java.lang.Object)>(v);
if v == 0 goto label;
return v;
label:
v = new org.finos.legend.engine.persistence.components.IncrementalClock;
v = v.<org.finos.legend.engine.persistence.components.IncrementalClock: java.time.Instant instant>;
v = v.<org.finos.legend.engine.persistence.components.IncrementalClock: java.lang.Long millis>;
v = virtualinvoke v.<java.lang.Long: long longValue()>();
specialinvoke v.<org.finos.legend.engine.persistence.components.IncrementalClock: void <init>(java.time.Instant,java.time.ZoneId,long)>(v, v, v);
return v;
}
public long millis()
{
org.finos.legend.engine.persistence.components.IncrementalClock v;
long v;
java.time.Instant v;
v := @this: org.finos.legend.engine.persistence.components.IncrementalClock;
v = v.<org.finos.legend.engine.persistence.components.IncrementalClock: java.time.Instant instant>;
v = virtualinvoke v.<java.time.Instant: long toEpochMilli()>();
return v;
}
public java.time.Instant instant()
{
org.finos.legend.engine.persistence.components.IncrementalClock v;
java.lang.Long v;
long v;
java.time.Instant v, v;
v := @this: org.finos.legend.engine.persistence.components.IncrementalClock;
v = v.<org.finos.legend.engine.persistence.components.IncrementalClock: java.time.Instant instant>;
v = v.<org.finos.legend.engine.persistence.components.IncrementalClock: java.lang.Long millis>;
v = virtualinvoke v.<java.lang.Long: long longValue()>();
v = virtualinvoke v.<java.time.Instant: java.time.Instant plusMillis(long)>(v);
v.<org.finos.legend.engine.persistence.components.IncrementalClock: java.time.Instant instant> = v;
return v;
}
public boolean equals(java.lang.Object)
{
org.finos.legend.engine.persistence.components.IncrementalClock v;
java.time.Instant v, v;
java.time.ZoneId v, v;
java.lang.Long v, v;
java.lang.Object v;
boolean v, v, v, v, v;
v := @this: org.finos.legend.engine.persistence.components.IncrementalClock;
v := @parameter: java.lang.Object;
v = v instanceof org.finos.legend.engine.persistence.components.IncrementalClock;
if v == 0 goto label;
v = v.<org.finos.legend.engine.persistence.components.IncrementalClock: java.time.Instant instant>;
v = v.<org.finos.legend.engine.persistence.components.IncrementalClock: java.time.Instant instant>;
v = virtualinvoke v.<java.time.Instant: boolean equals(java.lang.Object)>(v);
if v == 0 goto label;
v = v.<org.finos.legend.engine.persistence.components.IncrementalClock: java.time.ZoneId zone>;
v = v.<org.finos.legend.engine.persistence.components.IncrementalClock: java.time.ZoneId zone>;
v = virtualinvoke v.<java.time.ZoneId: boolean equals(java.lang.Object)>(v);
if v == 0 goto label;
v = v.<org.finos.legend.engine.persistence.components.IncrementalClock: java.lang.Long millis>;
v = v.<org.finos.legend.engine.persistence.components.IncrementalClock: java.lang.Long millis>;
v = virtualinvoke v.<java.lang.Long: boolean equals(java.lang.Object)>(v);
if v == 0 goto label;
v = 1;
goto label;
label:
v = 0;
label:
return v;
label:
return 0;
}
public int hashCode()
{
org.finos.legend.engine.persistence.components.IncrementalClock v;
int v, v, v;
java.time.Instant v;
java.time.ZoneId v;
v := @this: org.finos.legend.engine.persistence.components.IncrementalClock;
v = v.<org.finos.legend.engine.persistence.components.IncrementalClock: java.time.Instant instant>;
v = virtualinvoke v.<java.time.Instant: int hashCode()>();
v = v.<org.finos.legend.engine.persistence.components.IncrementalClock: java.time.ZoneId zone>;
v = virtualinvoke v.<java.time.ZoneId: int hashCode()>();
v = v ^ v;
return v;
}
public java.lang.String toString()
{
org.finos.legend.engine.persistence.components.IncrementalClock v;
java.lang.Long v;
java.lang.String v;
java.time.Instant v;
java.time.ZoneId v;
v := @this: org.finos.legend.engine.persistence.components.IncrementalClock;
v = v.<org.finos.legend.engine.persistence.components.IncrementalClock: java.time.Instant instant>;
v = v.<org.finos.legend.engine.persistence.components.IncrementalClock: java.time.ZoneId zone>;
v = v.<org.finos.legend.engine.persistence.components.IncrementalClock: java.lang.Long millis>;
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (java.time.Instant,java.time.ZoneId,java.lang.Long)>(v, v, v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("FixedClock[\u,\u,\u]");
return v;
}
}