package com.ss.android.ugc.aweme.music.ui.viewmodel;

import X.2HN;
import X.B8T;
import X.C2381Dov;
import X.C2382Dow;
import X.M12;
import com.bytedance.covode.number.Covode;
import com.bytedance.jedi.arch.NestedState;
import com.bytedance.jedi.arch.ext.list.ICommonListState;
import com.bytedance.jedi.arch.ext.list.ListState;
import java.util.List;
import kotlin.h.b.n;

public final class MusicAwemeListState implements ICommonListState<Object> {
    public boolean isNeedControl;
    public final String musicId;
    public int outBound;
    public final ListState<Object, C2381Dov> substate;

    static {
        Covode.recordClassIndex(94317);
    }

    public MusicAwemeListState() {
        this((String) null, 0, false, (ListState) null, 15, (2HN) null);
    }

    public static int INVOKESTATIC_com_ss_android_ugc_aweme_music_ui_viewmodel_MusicAwemeListState_com_ss_android_ugc_aweme_lancet_HashCodeLancet_hashCode(int i) {
        return i;
    }

    public static /* synthetic */ MusicAwemeListState copy$default(MusicAwemeListState musicAwemeListState, String str, int i, boolean z, ListState listState, int i2, Object obj) {
        if ((i2 & 1) != 0) {
            str = musicAwemeListState.musicId;
        }
        if ((i2 & 2) != 0) {
            i = musicAwemeListState.outBound;
        }
        if ((i2 & 4) != 0) {
            z = musicAwemeListState.isNeedControl;
        }
        if ((i2 & 8) != 0) {
            listState = musicAwemeListState.getSubstate();
        }
        return musicAwemeListState.copy(str, i, z, listState);
    }

    public final ListState<Object, C2381Dov> component4() {
        return getSubstate();
    }

    public final MusicAwemeListState copy(String str, int i, boolean z, ListState<Object, C2381Dov> listState) {
        M12.LIZ(str, listState);
        return new MusicAwemeListState(str, i, z, listState);
    }

    public final boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof MusicAwemeListState)) {
            return false;
        }
        MusicAwemeListState musicAwemeListState = (MusicAwemeListState) obj;
        return n.LIZ(this.musicId, musicAwemeListState.musicId) && this.outBound == musicAwemeListState.outBound && this.isNeedControl == musicAwemeListState.isNeedControl && n.LIZ(getSubstate(), musicAwemeListState.getSubstate());
    }

    public final int hashCode() {
        String str = this.musicId;
        int i = 0;
        int hashCode = (str != null ? str.hashCode() : 0) * 31;
        int i2 = this.outBound;
        INVOKESTATIC_com_ss_android_ugc_aweme_music_ui_viewmodel_MusicAwemeListState_com_ss_android_ugc_aweme_lancet_HashCodeLancet_hashCode(i2);
        int i3 = (hashCode + i2) * 31;
        boolean z = this.isNeedControl;
        if (z) {
            z = true;
        }
        int i4 = (i3 + (z ? 1 : 0)) * 31;
        ListState substate2 = getSubstate();
        if (substate2 != null) {
            i = substate2.hashCode();
        }
        return i4 + i;
    }

    public final String toString() {
        return "MusicAwemeListState(musicId=" + this.musicId + ", outBound=" + this.outBound + ", isNeedControl=" + this.isNeedControl + ", substate=" + getSubstate() + ")";
    }

    public final String getMusicId() {
        return this.musicId;
    }

    public final int getOutBound() {
        return this.outBound;
    }

    public final ListState<Object, C2381Dov> getSubstate() {
        return this.substate;
    }

    public final boolean isNeedControl() {
        return this.isNeedControl;
    }

    public final void setNeedControl(boolean z) {
        this.isNeedControl = z;
    }

    public final void setOutBound(int i) {
        this.outBound = i;
    }

    /* JADX WARNING: type inference failed for: r0v1, types: [com.ss.android.ugc.aweme.music.ui.viewmodel.MusicAwemeListState, com.bytedance.jedi.arch.NestedState<com.bytedance.jedi.arch.ext.list.ListState<java.lang.Object, X.Dov>>] */
    public final NestedState<ListState<Object, C2381Dov>> newSubstate(ListState<Object, C2381Dov> listState) {
        ListState<Object, C2381Dov> listState2 = listState;
        M12.LIZ(listState2);
        return copy$default(this, (String) null, 0, false, listState2, 7, (Object) null);
    }

    public MusicAwemeListState(String str, int i, boolean z, ListState<Object, C2381Dov> listState) {
        M12.LIZ(str, listState);
        this.musicId = str;
        this.outBound = i;
        this.isNeedControl = z;
        this.substate = listState;
    }

    /* JADX INFO: this call moved to the top of the method (can break code semantics) */
    public /* synthetic */ MusicAwemeListState(String str, int i, boolean z, ListState listState, int i2, 2HN r16) {
        this((i2 & 1) != 0 ? "" : str, (i2 & 2) != 0 ? -1 : i, (i2 & 4) != 0 ? false : z, (i2 & 8) != 0 ? new ListState(new C2381Dov(false, 2, (byte) 0), (List) null, (B8T) null, (B8T) null, (C2382Dow) null, 30, (2HN) null) : listState);
    }
}
