mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-26 17:12:31 -06:00
31 lines
907 B
Java
31 lines
907 B
Java
|
package io.sentry;
|
||
|
|
||
|
/* loaded from: classes3.dex */
|
||
|
public abstract class SentryDate implements Comparable<SentryDate> {
|
||
|
public abstract long nanoTimestamp();
|
||
|
|
||
|
public long laterDateNanosTimestampByDiff(SentryDate sentryDate) {
|
||
|
if (sentryDate != null && compareTo(sentryDate) < 0) {
|
||
|
return sentryDate.nanoTimestamp();
|
||
|
}
|
||
|
return nanoTimestamp();
|
||
|
}
|
||
|
|
||
|
public long diff(SentryDate sentryDate) {
|
||
|
return nanoTimestamp() - sentryDate.nanoTimestamp();
|
||
|
}
|
||
|
|
||
|
public final boolean isBefore(SentryDate sentryDate) {
|
||
|
return diff(sentryDate) < 0;
|
||
|
}
|
||
|
|
||
|
public final boolean isAfter(SentryDate sentryDate) {
|
||
|
return diff(sentryDate) > 0;
|
||
|
}
|
||
|
|
||
|
@Override // java.lang.Comparable
|
||
|
public int compareTo(SentryDate sentryDate) {
|
||
|
return Long.valueOf(nanoTimestamp()).compareTo(Long.valueOf(sentryDate.nanoTimestamp()));
|
||
|
}
|
||
|
}
|