package androidx.compose.runtime.retain;

import androidx.compose.runtime.Stable;
import java.util.Arrays;

/* JADX INFO: loaded from: classes.dex */
@Stable
final class RetainKeys {
    private final Object[] keys;
    private final long positionalKey;
    private final int typeHash;

    public RetainKeys(Object[] objArr, long j4, int i6) {
        this.keys = objArr;
        this.positionalKey = j4;
        this.typeHash = i6;
    }

    public boolean equals(Object obj) {
        if (!(obj instanceof RetainKeys)) {
            return false;
        }
        RetainKeys retainKeys = (RetainKeys) obj;
        return retainKeys.positionalKey == this.positionalKey && retainKeys.typeHash == this.typeHash && Arrays.equals(retainKeys.keys, this.keys);
    }

    public final long getPositionalKey() {
        return this.positionalKey;
    }

    public final int getTypeHash() {
        return this.typeHash;
    }

    public int hashCode() {
        Object[] objArr = this.keys;
        return Integer.hashCode(this.typeHash) + com.google.android.recaptcha.internal.a.e((objArr != null ? Arrays.hashCode(objArr) : 0) * 31, 31, this.positionalKey);
    }
}
