package androidx.window.embedding; import java.util.LinkedHashSet; import java.util.Set; import kotlin.Metadata; import kotlin.collections.CollectionsKt; import kotlin.jvm.internal.DefaultConstructorMarker; import kotlin.jvm.internal.Intrinsics; /* compiled from: ActivityRule.kt */ @Metadata(d1 = {"\u0000*\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\"\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000b\n\u0002\b\u0007\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\b\n\u0002\b\u0004\b\u0007\u0018\u00002\u00020\u0001B\u001d\u0012\f\u0010\u0002\u001a\b\u0012\u0004\u0012\u00020\u00040\u0003\u0012\b\b\u0002\u0010\u0005\u001a\u00020\u0006¢\u0006\u0002\u0010\u0007J\u0013\u0010\f\u001a\u00020\u00062\b\u0010\r\u001a\u0004\u0018\u00010\u000eH\u0096\u0002J\b\u0010\u000f\u001a\u00020\u0010H\u0016J\u0016\u0010\u0011\u001a\u00020\u00002\u0006\u0010\u0012\u001a\u00020\u0004H\u0080\u0002¢\u0006\u0002\b\u0013R\u0011\u0010\u0005\u001a\u00020\u0006¢\u0006\b\n\u0000\u001a\u0004\b\b\u0010\tR\u0017\u0010\u0002\u001a\b\u0012\u0004\u0012\u00020\u00040\u0003¢\u0006\b\n\u0000\u001a\u0004\b\n\u0010\u000b¨\u0006\u0014"}, d2 = {"Landroidx/window/embedding/ActivityRule;", "Landroidx/window/embedding/EmbeddingRule;", "filters", "", "Landroidx/window/embedding/ActivityFilter;", "alwaysExpand", "", "(Ljava/util/Set;Z)V", "getAlwaysExpand", "()Z", "getFilters", "()Ljava/util/Set;", "equals", "other", "", "hashCode", "", "plus", "filter", "plus$window_release", "window_release"}, k = 1, mv = {1, 6, 0}, xi = 48) /* loaded from: classes2.dex */ public final class ActivityRule extends EmbeddingRule { private final boolean alwaysExpand; private final Set filters; public final boolean getAlwaysExpand() { return this.alwaysExpand; } public final Set getFilters() { return this.filters; } public /* synthetic */ ActivityRule(Set set, boolean z, int i, DefaultConstructorMarker defaultConstructorMarker) { this(set, (i & 2) != 0 ? false : z); } public ActivityRule(Set filters, boolean z) { Intrinsics.checkNotNullParameter(filters, "filters"); this.alwaysExpand = z; this.filters = CollectionsKt.toSet(filters); } public final ActivityRule plus$window_release(ActivityFilter filter) { Intrinsics.checkNotNullParameter(filter, "filter"); LinkedHashSet linkedHashSet = new LinkedHashSet(); linkedHashSet.addAll(this.filters); linkedHashSet.add(filter); return new ActivityRule(CollectionsKt.toSet(linkedHashSet), this.alwaysExpand); } public boolean equals(Object other) { if (this == other) { return true; } if (!(other instanceof ActivityRule)) { return false; } ActivityRule activityRule = (ActivityRule) other; return Intrinsics.areEqual(this.filters, activityRule.filters) && this.alwaysExpand == activityRule.alwaysExpand; } public int hashCode() { return (this.filters.hashCode() * 31) + Boolean.hashCode(this.alwaysExpand); } }