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

57 lines
2.9 KiB
Java

package androidx.compose.ui.layout;
import kotlin.Metadata;
/* compiled from: ContentScale.kt */
@Metadata(d1 = {"\u00008\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0007\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\b\n\u0000\n\u0002\u0010\u000e\n\u0000\b\u0087\b\u0018\u00002\u00020\u0001B\r\u0012\u0006\u0010\u0002\u001a\u00020\u0003¢\u0006\u0002\u0010\u0004J\t\u0010\u0007\u001a\u00020\u0003HÆ\u0003J%\u0010\b\u001a\u00020\t2\u0006\u0010\n\u001a\u00020\u000b2\u0006\u0010\f\u001a\u00020\u000bH\u0016ø\u0001\u0000ø\u0001\u0001¢\u0006\u0004\b\r\u0010\u000eJ\u0013\u0010\u000f\u001a\u00020\u00002\b\b\u0002\u0010\u0002\u001a\u00020\u0003HÆ\u0001J\u0013\u0010\u0010\u001a\u00020\u00112\b\u0010\u0012\u001a\u0004\u0018\u00010\u0013HÖ\u0003J\t\u0010\u0014\u001a\u00020\u0015HÖ\u0001J\t\u0010\u0016\u001a\u00020\u0017HÖ\u0001R\u0011\u0010\u0002\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u0005\u0010\u0006\u0082\u0002\u000b\n\u0005\\u001e0\u0001\n\u0002\b\u0019¨\u0006\u0018"}, d2 = {"Landroidx/compose/ui/layout/FixedScale;", "Landroidx/compose/ui/layout/ContentScale;", "value", "", "(F)V", "getValue", "()F", "component1", "computeScaleFactor", "Landroidx/compose/ui/layout/ScaleFactor;", "srcSize", "Landroidx/compose/ui/geometry/Size;", "dstSize", "computeScaleFactor-H7hwNQA", "(JJ)J", "copy", "equals", "", "other", "", "hashCode", "", "toString", "", "ui_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
/* loaded from: classes.dex */
public final /* data */ class FixedScale implements ContentScale {
public static final int $stable = 0;
private final float value;
public static /* synthetic */ FixedScale copy$default(FixedScale fixedScale, float f, int i, Object obj) {
if ((i & 1) != 0) {
f = fixedScale.value;
}
return fixedScale.copy(f);
}
/* renamed from: component1, reason: from getter */
public final float getValue() {
return this.value;
}
public final FixedScale copy(float value) {
return new FixedScale(value);
}
public boolean equals(Object other) {
if (this == other) {
return true;
}
return (other instanceof FixedScale) && Float.compare(this.value, ((FixedScale) other).value) == 0;
}
public final float getValue() {
return this.value;
}
public int hashCode() {
return Float.hashCode(this.value);
}
public String toString() {
return "FixedScale(value=" + this.value + ')';
}
public FixedScale(float f) {
this.value = f;
}
@Override // androidx.compose.ui.layout.ContentScale
/* renamed from: computeScaleFactor-H7hwNQA */
public long mo3867computeScaleFactorH7hwNQA(long srcSize, long dstSize) {
float f = this.value;
return ScaleFactorKt.ScaleFactor(f, f);
}
}