mirror of
https://github.com/VibedByKaKi/alexandroid.git
synced 2026-11-16 19:07:17 +01:00
23 lines
669 B
Java
23 lines
669 B
Java
package com.google.common.base;
|
|
|
|
import com.google.common.annotations.GwtIncompatible;
|
|
import com.google.common.annotations.J2ktIncompatible;
|
|
import java.time.Duration;
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
@J2ktIncompatible
|
|
@GwtIncompatible
|
|
/* loaded from: classes8.dex */
|
|
final class Internal {
|
|
private Internal() {
|
|
}
|
|
|
|
@IgnoreJRERequirement
|
|
public static long toNanosSaturated(Duration duration) {
|
|
try {
|
|
return duration.toNanos();
|
|
} catch (ArithmeticException unused) {
|
|
return duration.isNegative() ? Long.MIN_VALUE : Long.MAX_VALUE;
|
|
}
|
|
}
|
|
}
|