mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-25 16:42:30 -06:00
30 lines
907 B
Java
30 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()));
|
|
}
|
|
}
|