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

import X.2HN;
import X.C46526ra;
import X.M12;
import com.bytedance.covode.number.Covode;
import com.google.gson.a.c;
import java.io.Serializable;
import java.util.Objects;

public final class FrameItem implements Serializable {
    public static final Companion Companion = new Companion((2HN) null);
    public final int index;
    public boolean isCropped;
    @c(LIZ = "path")
    @C46526ra
    public final String path;
    @c(LIZ = "timeStamp")
    public long timeStamp;
    public final int type;

    static {
        Covode.recordClassIndex(111003);
    }

    public FrameItem(String str) {
        this(str, 0, 0, false, 14, (2HN) null);
    }

    public FrameItem(String str, int i) {
        this(str, i, 0, false, 12, (2HN) null);
    }

    public FrameItem(String str, int i, int i2) {
        this(str, i, i2, false, 8, (2HN) null);
    }

    public static /* synthetic */ FrameItem copy$default(FrameItem frameItem, String str, int i, int i2, boolean z, int i3, Object obj) {
        if ((i3 & 1) != 0) {
            str = frameItem.path;
        }
        if ((i3 & 2) != 0) {
            i = frameItem.type;
        }
        if ((i3 & 4) != 0) {
            i2 = frameItem.index;
        }
        if ((i3 & 8) != 0) {
            z = frameItem.isCropped;
        }
        return frameItem.copy(str, i, i2, z);
    }

    private Object[] getObjects() {
        return new Object[]{this.path, Integer.valueOf(this.type), Integer.valueOf(this.index), Boolean.valueOf(this.isCropped)};
    }

    public final FrameItem copy(String str, int i, int i2, boolean z) {
        M12.LIZ(str);
        return new FrameItem(str, i, i2, z);
    }

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

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

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

    public static final class Companion {
        static {
            Covode.recordClassIndex(111004);
        }

        public Companion() {
        }

        public /* synthetic */ Companion(2HN r1) {
            this();
        }
    }

    public final int getIndex() {
        return this.index;
    }

    public final String getPath() {
        return this.path;
    }

    public final long getTimeStamp() {
        return this.timeStamp;
    }

    public final int getType() {
        return this.type;
    }

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

    public final void setCropped(boolean z) {
        this.isCropped = z;
    }

    public final void setTimeStamp(long j) {
        this.timeStamp = j;
    }

    public FrameItem(String str, int i, int i2, boolean z) {
        M12.LIZ(str);
        this.path = str;
        this.type = i;
        this.index = i2;
        this.isCropped = z;
        this.timeStamp = -1;
    }

    /* JADX INFO: this call moved to the top of the method (can break code semantics) */
    public /* synthetic */ FrameItem(String str, int i, int i2, boolean z, int i3, 2HN r7) {
        this(str, (i3 & 2) != 0 ? 1 : i, (i3 & 4) != 0 ? -1 : i2, (i3 & 8) != 0 ? false : z);
    }
}
