package com.revenuecat.purchases.ui.revenuecatui;

import androidx.compose.runtime.internal.StabilityInferred;
import com.revenuecat.purchases.ReplacementMode;
import kotlin.jvm.internal.o;

/* JADX INFO: loaded from: classes3.dex */
@StabilityInferred(parameters = 0)
public final class ProductChange {
    public static final int $stable = 8;
    private final String oldProductId;
    private final ReplacementMode replacementMode;

    public ProductChange(String oldProductId, ReplacementMode replacementMode) {
        o.h(oldProductId, "oldProductId");
        this.oldProductId = oldProductId;
        this.replacementMode = replacementMode;
    }

    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof ProductChange)) {
            return false;
        }
        ProductChange productChange = (ProductChange) obj;
        return o.c(this.oldProductId, productChange.oldProductId) && o.c(this.replacementMode, productChange.replacementMode);
    }

    public final String getOldProductId() {
        return this.oldProductId;
    }

    public final ReplacementMode getReplacementMode() {
        return this.replacementMode;
    }

    public int hashCode() {
        int iHashCode = this.oldProductId.hashCode() * 31;
        ReplacementMode replacementMode = this.replacementMode;
        return iHashCode + (replacementMode == null ? 0 : replacementMode.hashCode());
    }

    public String toString() {
        return "ProductChange(oldProductId=" + this.oldProductId + ", replacementMode=" + this.replacementMode + ')';
    }
}
