package com.ss.android.ugc.aweme.shortvideo.mvtemplate.choosemedia;

import X.2HN;
import X.5Am;
import X.M12;
import com.bytedance.covode.number.Covode;
import java.util.Objects;

public final class PreviewSwapState implements 5Am {
    public final Integer from;
    public final Integer to;
    public final long value;

    static {
        Covode.recordClassIndex(111192);
    }

    public static int INVOKESTATIC_com_ss_android_ugc_aweme_shortvideo_mvtemplate_choosemedia_PreviewSwapState_com_ss_android_ugc_aweme_lancet_HashCodeLancet_hashCode(long j) {
        return (int) (j ^ (j >>> 32));
    }

    public static /* synthetic */ PreviewSwapState copy$default(PreviewSwapState previewSwapState, Integer num, Integer num2, long j, int i, Object obj) {
        if ((i & 1) != 0) {
            num = previewSwapState.from;
        }
        if ((i & 2) != 0) {
            num2 = previewSwapState.to;
        }
        if ((i & 4) != 0) {
            j = previewSwapState.value;
        }
        return previewSwapState.copy(num, num2, j);
    }

    private Object[] getObjects() {
        return new Object[]{this.from, this.to, Long.valueOf(this.value)};
    }

    public final PreviewSwapState copy(Integer num, Integer num2, long j) {
        return new PreviewSwapState(num, num2, j);
    }

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

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

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

    public final Integer getFrom() {
        return this.from;
    }

    public final Integer getTo() {
        return this.to;
    }

    public final long getValue() {
        return this.value;
    }

    public PreviewSwapState(Integer num, Integer num2, long j) {
        this.from = num;
        this.to = num2;
        this.value = j;
    }

    /* JADX INFO: this call moved to the top of the method (can break code semantics) */
    public /* synthetic */ PreviewSwapState(Integer num, Integer num2, long j, int i, 2HN r8) {
        this((i & 1) != 0 ? null : num, (i & 2) != 0 ? null : num2, j);
    }
}
