Rabbit-R1/switch port/java/sources/androidx/compose/ui/unit/Dp.java
2024-05-21 17:08:36 -04:00

168 lines
9.3 KiB
Java

package androidx.compose.ui.unit;
import kotlin.Metadata;
import kotlin.jvm.JvmInline;
import kotlin.jvm.internal.DefaultConstructorMarker;
/* compiled from: Dp.kt */
@Metadata(d1 = {"\u0000.\n\u0002\u0018\u0002\n\u0002\u0010\u000f\n\u0000\n\u0002\u0010\u0007\n\u0002\b\u0005\n\u0002\u0010\b\n\u0002\b\t\n\u0002\u0010\u000b\n\u0002\u0010\u0000\n\u0002\b\f\n\u0002\u0010\u000e\n\u0002\b\u0006\b\u0087@\u0018\u0000 &2\b\u0012\u0004\u0012\u00020\u00000\u0001:\u0001&B\u0012\u0012\u0006\u0010\u0002\u001a\u00020\u0003ø\u0001\u0000¢\u0006\u0004\b\u0004\u0010\u0005J\u001e\u0010\b\u001a\u00020\t2\u0006\u0010\n\u001a\u00020\u0000H\u0097\u0002ø\u0001\u0001ø\u0001\u0000¢\u0006\u0004\b\u000b\u0010\fJ\u001e\u0010\r\u001a\u00020\u00032\u0006\u0010\n\u001a\u00020\u0000H\u0087\\u0001\u0001ø\u0001\u0000¢\u0006\u0004\b\u000e\u0010\u000fJ!\u0010\r\u001a\u00020\u00002\u0006\u0010\n\u001a\u00020\u0003H\u0087\\u0001\u0002ø\u0001\u0001ø\u0001\u0000¢\u0006\u0004\b\u0010\u0010\u000fJ!\u0010\r\u001a\u00020\u00002\u0006\u0010\n\u001a\u00020\tH\u0087\\u0001\u0002ø\u0001\u0001ø\u0001\u0000¢\u0006\u0004\b\u0010\u0010\u0011J\u001a\u0010\u0012\u001a\u00020\u00132\b\u0010\n\u001a\u0004\u0018\u00010\u0014HÖ\u0003¢\u0006\u0004\b\u0015\u0010\u0016J\u0010\u0010\u0017\u001a\u00020\tHÖ\u0001¢\u0006\u0004\b\u0018\u0010\u0019J\u001e\u0010\u001a\u001a\u00020\u00002\u0006\u0010\n\u001a\u00020\u0000H\u0087\\u0001\u0001ø\u0001\u0000¢\u0006\u0004\b\u001b\u0010\u000fJ\u001e\u0010\u001c\u001a\u00020\u00002\u0006\u0010\n\u001a\u00020\u0000H\u0087\\u0001\u0001ø\u0001\u0000¢\u0006\u0004\b\u001d\u0010\u000fJ!\u0010\u001e\u001a\u00020\u00002\u0006\u0010\n\u001a\u00020\u0003H\u0087\\u0001\u0002ø\u0001\u0001ø\u0001\u0000¢\u0006\u0004\b\u001f\u0010\u000fJ!\u0010\u001e\u001a\u00020\u00002\u0006\u0010\n\u001a\u00020\tH\u0087\\u0001\u0002ø\u0001\u0001ø\u0001\u0000¢\u0006\u0004\b\u001f\u0010\u0011J\u000f\u0010 \u001a\u00020!H\u0017¢\u0006\u0004\b\"\u0010#J\u0019\u0010$\u001a\u00020\u0000H\u0087\\u0001\u0002ø\u0001\u0001ø\u0001\u0000¢\u0006\u0004\b%\u0010\u0005R\u0011\u0010\u0002\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u0006\u0010\u0007\u0088\u0001\u0002ø\u0001\u0000\u0082\u0002\u000f\n\u0002\b\u0019\n\u0005\\u001e0\u0001\n\u0002\b!¨\u0006'"}, d2 = {"Landroidx/compose/ui/unit/Dp;", "", "value", "", "constructor-impl", "(F)F", "getValue", "()F", "compareTo", "", "other", "compareTo-0680j_4", "(FF)I", "div", "div-0680j_4", "(FF)F", "div-u2uoSUM", "(FI)F", "equals", "", "", "equals-impl", "(FLjava/lang/Object;)Z", "hashCode", "hashCode-impl", "(F)I", "minus", "minus-5rwHm24", "plus", "plus-5rwHm24", "times", "times-u2uoSUM", "toString", "", "toString-impl", "(F)Ljava/lang/String;", "unaryMinus", "unaryMinus-D9Ej5fM", "Companion", "ui-unit_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
@JvmInline
/* loaded from: classes.dex */
public final class Dp implements Comparable<Dp> {
/* renamed from: Companion, reason: from kotlin metadata */
public static final Companion INSTANCE = new Companion(null);
private static final float Hairline = m4883constructorimpl(0.0f);
private static final float Infinity = m4883constructorimpl(Float.POSITIVE_INFINITY);
private static final float Unspecified = m4883constructorimpl(Float.NaN);
private final float value;
/* renamed from: box-impl, reason: not valid java name */
public static final /* synthetic */ Dp m4881boximpl(float f) {
return new Dp(f);
}
/* renamed from: constructor-impl, reason: not valid java name */
public static float m4883constructorimpl(float f) {
return f;
}
/* renamed from: div-0680j_4, reason: not valid java name */
public static final float m4884div0680j_4(float f, float f2) {
return f / f2;
}
/* renamed from: equals-impl, reason: not valid java name */
public static boolean m4887equalsimpl(float f, Object obj) {
return (obj instanceof Dp) && Float.compare(f, ((Dp) obj).m4897unboximpl()) == 0;
}
/* renamed from: equals-impl0, reason: not valid java name */
public static final boolean m4888equalsimpl0(float f, float f2) {
return Float.compare(f, f2) == 0;
}
/* renamed from: hashCode-impl, reason: not valid java name */
public static int m4889hashCodeimpl(float f) {
return Float.hashCode(f);
}
public boolean equals(Object obj) {
return m4887equalsimpl(this.value, obj);
}
public final float getValue() {
return this.value;
}
public int hashCode() {
return m4889hashCodeimpl(this.value);
}
/* renamed from: unbox-impl, reason: not valid java name */
public final /* synthetic */ float m4897unboximpl() {
return this.value;
}
@Override // java.lang.Comparable
public /* bridge */ /* synthetic */ int compareTo(Dp dp) {
return m4896compareTo0680j_4(dp.m4897unboximpl());
}
private /* synthetic */ Dp(float f) {
this.value = f;
}
/* renamed from: plus-5rwHm24, reason: not valid java name */
public static final float m4891plus5rwHm24(float f, float f2) {
return m4883constructorimpl(f + f2);
}
/* renamed from: minus-5rwHm24, reason: not valid java name */
public static final float m4890minus5rwHm24(float f, float f2) {
return m4883constructorimpl(f - f2);
}
/* renamed from: unaryMinus-D9Ej5fM, reason: not valid java name */
public static final float m4895unaryMinusD9Ej5fM(float f) {
return m4883constructorimpl(-f);
}
/* renamed from: div-u2uoSUM, reason: not valid java name */
public static final float m4885divu2uoSUM(float f, float f2) {
return m4883constructorimpl(f / f2);
}
/* renamed from: div-u2uoSUM, reason: not valid java name */
public static final float m4886divu2uoSUM(float f, int i) {
return m4883constructorimpl(f / i);
}
/* renamed from: times-u2uoSUM, reason: not valid java name */
public static final float m4892timesu2uoSUM(float f, float f2) {
return m4883constructorimpl(f * f2);
}
/* renamed from: times-u2uoSUM, reason: not valid java name */
public static final float m4893timesu2uoSUM(float f, int i) {
return m4883constructorimpl(f * i);
}
/* renamed from: compareTo-0680j_4, reason: not valid java name */
public static int m4882compareTo0680j_4(float f, float f2) {
return Float.compare(f, f2);
}
/* renamed from: compareTo-0680j_4, reason: not valid java name */
public int m4896compareTo0680j_4(float f) {
return m4882compareTo0680j_4(this.value, f);
}
public String toString() {
return m4894toStringimpl(this.value);
}
/* compiled from: Dp.kt */
@Metadata(d1 = {"\u0000\u0014\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u000b\b\u0086\u0003\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002R'\u0010\u0003\u001a\u00020\u00048\u0006X\u0087\u0004ø\u0001\u0000ø\u0001\u0001ø\u0001\u0002¢\u0006\u0010\n\u0002\u0010\b\u0012\u0004\b\u0005\u0010\u0002\u001a\u0004\b\u0006\u0010\u0007R'\u0010\t\u001a\u00020\u00048\u0006X\u0087\u0004ø\u0001\u0000ø\u0001\u0001ø\u0001\u0002¢\u0006\u0010\n\u0002\u0010\b\u0012\u0004\b\n\u0010\u0002\u001a\u0004\b\u000b\u0010\u0007R'\u0010\f\u001a\u00020\u00048\u0006X\u0087\u0004ø\u0001\u0000ø\u0001\u0001ø\u0001\u0002¢\u0006\u0010\n\u0002\u0010\b\u0012\u0004\b\r\u0010\u0002\u001a\u0004\b\u000e\u0010\u0007\u0082\u0002\u000f\n\u0002\b\u0019\n\u0005\\u001e0\u0001\n\u0002\b!¨\u0006\u000f"}, d2 = {"Landroidx/compose/ui/unit/Dp$Companion;", "", "()V", "Hairline", "Landroidx/compose/ui/unit/Dp;", "getHairline-D9Ej5fM$annotations", "getHairline-D9Ej5fM", "()F", "F", "Infinity", "getInfinity-D9Ej5fM$annotations", "getInfinity-D9Ej5fM", "Unspecified", "getUnspecified-D9Ej5fM$annotations", "getUnspecified-D9Ej5fM", "ui-unit_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
/* loaded from: classes.dex */
public static final class Companion {
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
/* renamed from: getHairline-D9Ej5fM$annotations, reason: not valid java name */
public static /* synthetic */ void m4898getHairlineD9Ej5fM$annotations() {
}
/* renamed from: getInfinity-D9Ej5fM$annotations, reason: not valid java name */
public static /* synthetic */ void m4899getInfinityD9Ej5fM$annotations() {
}
/* renamed from: getUnspecified-D9Ej5fM$annotations, reason: not valid java name */
public static /* synthetic */ void m4900getUnspecifiedD9Ej5fM$annotations() {
}
private Companion() {
}
/* renamed from: getHairline-D9Ej5fM, reason: not valid java name */
public final float m4901getHairlineD9Ej5fM() {
return Dp.Hairline;
}
/* renamed from: getInfinity-D9Ej5fM, reason: not valid java name */
public final float m4902getInfinityD9Ej5fM() {
return Dp.Infinity;
}
/* renamed from: getUnspecified-D9Ej5fM, reason: not valid java name */
public final float m4903getUnspecifiedD9Ej5fM() {
return Dp.Unspecified;
}
}
/* renamed from: toString-impl, reason: not valid java name */
public static String m4894toStringimpl(float f) {
return Float.isNaN(f) ? "Dp.Unspecified" : f + ".dp";
}
}