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

import X.C522672a;
import X.M12;
import android.os.Parcel;
import android.os.Parcelable;
import com.bytedance.covode.number.Covode;
import java.util.Objects;

public final class NaviContext implements Parcelable {
    public static final Parcelable.Creator<NaviContext> CREATOR = new C522672a();
    public Long LIZ;
    public Boolean LIZIZ;

    static {
        Covode.recordClassIndex(108148);
    }

    public NaviContext(byte b) {
        this();
    }

    private Object[] LIZ() {
        return new Object[]{this.LIZ, this.LIZIZ};
    }

    public final int describeContents() {
        return 0;
    }

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

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

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

    public final void writeToParcel(Parcel parcel, int i) {
        M12.LIZ(parcel);
        Long l = this.LIZ;
        if (l != null) {
            parcel.writeInt(1);
            parcel.writeLong(l.longValue());
        } else {
            parcel.writeInt(0);
        }
        Boolean bool = this.LIZIZ;
        if (bool != null) {
            parcel.writeInt(1);
            parcel.writeInt(bool.booleanValue() ? 1 : 0);
            return;
        }
        parcel.writeInt(0);
    }

    public /* synthetic */ NaviContext() {
        this((Long) null, false);
    }

    public NaviContext(Long l, Boolean bool) {
        this.LIZ = l;
        this.LIZIZ = bool;
    }
}
