Rabbit-R1/switch port/java/sources/androidx/window/embedding/SplitInfo.java
2024-05-21 17:08:36 -04:00

64 lines
3.9 KiB
Java

package androidx.window.embedding;
import android.app.Activity;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;
/* compiled from: SplitInfo.kt */
@Metadata(d1 = {"\u00004\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0007\n\u0002\b\u0007\n\u0002\u0010\u000b\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\b\n\u0000\n\u0002\u0010\u000e\n\u0000\b\u0007\u0018\u00002\u00020\u0001B\u001f\b\u0000\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u0006\u0010\u0004\u001a\u00020\u0003\u0012\u0006\u0010\u0005\u001a\u00020\u0006¢\u0006\u0002\u0010\u0007J\u0011\u0010\r\u001a\u00020\u000e2\u0006\u0010\u000f\u001a\u00020\u0010H\u0086\u0002J\u0013\u0010\u0011\u001a\u00020\u000e2\b\u0010\u0012\u001a\u0004\u0018\u00010\u0001H\u0096\u0002J\b\u0010\u0013\u001a\u00020\u0014H\u0016J\b\u0010\u0015\u001a\u00020\u0016H\u0016R\u0011\u0010\u0002\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\b\u0010\tR\u0011\u0010\u0004\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\n\u0010\tR\u0011\u0010\u0005\u001a\u00020\u0006¢\u0006\b\n\u0000\u001a\u0004\b\u000b\u0010\\u0006\u0017"}, d2 = {"Landroidx/window/embedding/SplitInfo;", "", "primaryActivityStack", "Landroidx/window/embedding/ActivityStack;", "secondaryActivityStack", "splitRatio", "", "(Landroidx/window/embedding/ActivityStack;Landroidx/window/embedding/ActivityStack;F)V", "getPrimaryActivityStack", "()Landroidx/window/embedding/ActivityStack;", "getSecondaryActivityStack", "getSplitRatio", "()F", "contains", "", "activity", "Landroid/app/Activity;", "equals", "other", "hashCode", "", "toString", "", "window_release"}, k = 1, mv = {1, 6, 0}, xi = 48)
/* loaded from: classes2.dex */
public final class SplitInfo {
private final ActivityStack primaryActivityStack;
private final ActivityStack secondaryActivityStack;
private final float splitRatio;
public final ActivityStack getPrimaryActivityStack() {
return this.primaryActivityStack;
}
public final ActivityStack getSecondaryActivityStack() {
return this.secondaryActivityStack;
}
public final float getSplitRatio() {
return this.splitRatio;
}
public SplitInfo(ActivityStack primaryActivityStack, ActivityStack secondaryActivityStack, float f) {
Intrinsics.checkNotNullParameter(primaryActivityStack, "primaryActivityStack");
Intrinsics.checkNotNullParameter(secondaryActivityStack, "secondaryActivityStack");
this.primaryActivityStack = primaryActivityStack;
this.secondaryActivityStack = secondaryActivityStack;
this.splitRatio = f;
}
public final boolean contains(Activity activity) {
Intrinsics.checkNotNullParameter(activity, "activity");
return this.primaryActivityStack.contains(activity) || this.secondaryActivityStack.contains(activity);
}
public boolean equals(Object other) {
if (this == other) {
return true;
}
if (!(other instanceof SplitInfo)) {
return false;
}
SplitInfo splitInfo = (SplitInfo) other;
return Intrinsics.areEqual(this.primaryActivityStack, splitInfo.primaryActivityStack) && Intrinsics.areEqual(this.secondaryActivityStack, splitInfo.secondaryActivityStack) && this.splitRatio == splitInfo.splitRatio;
}
public int hashCode() {
return (((this.primaryActivityStack.hashCode() * 31) + this.secondaryActivityStack.hashCode()) * 31) + Float.hashCode(this.splitRatio);
}
public String toString() {
StringBuilder sb = new StringBuilder("SplitInfo:{");
sb.append("primaryActivityStack=" + getPrimaryActivityStack() + ',');
sb.append("secondaryActivityStack=" + getSecondaryActivityStack() + ',');
sb.append("splitRatio=" + getSplitRatio() + '}');
String sb2 = sb.toString();
Intrinsics.checkNotNullExpressionValue(sb2, "StringBuilder().apply(builderAction).toString()");
return sb2;
}
}