package com.ss.android.ugc.aweme.discover.model;

import X.2HN;
import X.Lel;
import X.M12;
import com.bytedance.covode.number.Covode;
import java.io.Serializable;
import java.util.List;
import java.util.Objects;

public final class DiscoverSectionList implements Serializable {
    public final int cursor;
    public final boolean hasMore;
    public boolean isCache;
    public final List<DiscoverSectionItem> sections;

    static {
        Covode.recordClassIndex(65140);
    }

    public DiscoverSectionList() {
        this((List) null, 0, false, false, 15, (2HN) null);
    }

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

    public static /* synthetic */ DiscoverSectionList copy$default(DiscoverSectionList discoverSectionList, List<DiscoverSectionItem> list, int i, boolean z, boolean z2, int i2, Object obj) {
        if ((i2 & 1) != 0) {
            list = discoverSectionList.sections;
        }
        if ((i2 & 2) != 0) {
            i = discoverSectionList.cursor;
        }
        if ((i2 & 4) != 0) {
            z = discoverSectionList.hasMore;
        }
        if ((i2 & 8) != 0) {
            z2 = discoverSectionList.isCache;
        }
        return discoverSectionList.copy(list, i, z, z2);
    }

    private Object[] getObjects() {
        return new Object[]{this.sections, Integer.valueOf(this.cursor), Boolean.valueOf(this.hasMore), Boolean.valueOf(this.isCache)};
    }

    public final DiscoverSectionList copy(List<? extends DiscoverSectionItem> list, int i, boolean z, boolean z2) {
        M12.LIZ(list);
        return new DiscoverSectionList(list, i, z, z2);
    }

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

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

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

    public final int getCursor() {
        return this.cursor;
    }

    public final boolean getHasMore() {
        return this.hasMore;
    }

    public final List<DiscoverSectionItem> getSections() {
        return this.sections;
    }

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

    public final void setCache(boolean z) {
        this.isCache = z;
    }

    public DiscoverSectionList(List<? extends DiscoverSectionItem> list, int i, boolean z, boolean z2) {
        M12.LIZ(list);
        this.sections = list;
        this.cursor = i;
        this.hasMore = z;
        this.isCache = z2;
    }

    /* JADX INFO: this call moved to the top of the method (can break code semantics) */
    public /* synthetic */ DiscoverSectionList(Lel lel, int i, boolean z, boolean z2, int i2, 2HN r8) {
        this((i2 & 1) != 0 ? Lel.INSTANCE : lel, (i2 & 2) != 0 ? 0 : i, (i2 & 4) != 0 ? false : z, (i2 & 8) != 0 ? false : z2);
    }
}
