package com.ss.android.ugc.aweme.challenge.viewmodel;

import X.2HN;
import X.5Am;
import X.B8S;
import X.B8T;
import X.M12;
import com.bytedance.covode.number.Covode;
import com.ss.android.ugc.aweme.challenge.model.ChallengeDetail;
import java.util.Objects;

public final class ChallengeDetailState implements 5Am {
    public final B8T<ChallengeDetail> challengeDetail;

    static {
        Covode.recordClassIndex(55905);
    }

    public ChallengeDetailState() {
        this((B8T) null, 1, (2HN) null);
    }

    public static /* synthetic */ ChallengeDetailState copy$default(ChallengeDetailState challengeDetailState, B8T<ChallengeDetail> b8t, int i, Object obj) {
        if ((i & 1) != 0) {
            b8t = challengeDetailState.challengeDetail;
        }
        return challengeDetailState.copy(b8t);
    }

    private Object[] getObjects() {
        return new Object[]{this.challengeDetail};
    }

    public final ChallengeDetailState copy(B8T<? extends ChallengeDetail> b8t) {
        M12.LIZ(b8t);
        return new ChallengeDetailState(b8t);
    }

    public final boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof ChallengeDetailState)) {
            return false;
        }
        return M12.LIZ(((ChallengeDetailState) obj).getObjects(), getObjects());
    }

    public final int hashCode() {
        return Objects.hash(getObjects());
    }

    public final String toString() {
        return M12.LIZ("ChallengeDetailState:%s", getObjects());
    }

    public final B8T<ChallengeDetail> getChallengeDetail() {
        return this.challengeDetail;
    }

    public ChallengeDetailState(B8T<? extends ChallengeDetail> b8t) {
        M12.LIZ(b8t);
        this.challengeDetail = b8t;
    }

    /* JADX INFO: this call moved to the top of the method (can break code semantics) */
    public /* synthetic */ ChallengeDetailState(B8T b8t, int i, 2HN r4) {
        this((i & 1) != 0 ? B8S.LIZ : b8t);
    }
}
