package com.ifpos.bytello.share.sdk.model;

import com.google.gson.annotations.SerializedName;
import g.h0.c.g;
import g.h0.c.l;
import g.i;
import java.util.List;

/* JADX INFO: compiled from: SettingItem.kt */
/* JADX INFO: loaded from: classes.dex */
@i
public final class Parameter<T> {

    @SerializedName("belongItemId")
    private final int belongItemId;

    @SerializedName("currentValue")
    private final T currentValue;

    @SerializedName("options")
    private final List<T> options;

    @SerializedName("targetValue")
    private final T targetValue;

    /* JADX WARN: Multi-variable type inference failed */
    public Parameter(T t, int i2, List<? extends T> list, T t2) {
        this.currentValue = t;
        this.belongItemId = i2;
        this.options = list;
        this.targetValue = t2;
    }

    /* JADX WARN: Multi-variable type inference failed */
    public static /* synthetic */ Parameter copy$default(Parameter parameter, Object obj, int i2, List list, Object obj2, int i3, Object obj3) {
        if ((i3 & 1) != 0) {
            obj = parameter.currentValue;
        }
        if ((i3 & 2) != 0) {
            i2 = parameter.belongItemId;
        }
        if ((i3 & 4) != 0) {
            list = parameter.options;
        }
        if ((i3 & 8) != 0) {
            obj2 = parameter.targetValue;
        }
        return parameter.copy(obj, i2, list, obj2);
    }

    public final T component1() {
        return this.currentValue;
    }

    public final int component2() {
        return this.belongItemId;
    }

    public final List<T> component3() {
        return this.options;
    }

    public final T component4() {
        return this.targetValue;
    }

    public final Parameter<T> copy(T t, int i2, List<? extends T> list, T t2) {
        return new Parameter<>(t, i2, list, t2);
    }

    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof Parameter)) {
            return false;
        }
        Parameter parameter = (Parameter) obj;
        return l.a(this.currentValue, parameter.currentValue) && this.belongItemId == parameter.belongItemId && l.a(this.options, parameter.options) && l.a(this.targetValue, parameter.targetValue);
    }

    public final int getBelongItemId() {
        return this.belongItemId;
    }

    public final T getCurrentValue() {
        return this.currentValue;
    }

    public final List<T> getOptions() {
        return this.options;
    }

    public final T getTargetValue() {
        return this.targetValue;
    }

    public int hashCode() {
        T t = this.currentValue;
        int iHashCode = (Integer.hashCode(this.belongItemId) + ((t == null ? 0 : t.hashCode()) * 31)) * 31;
        List<T> list = this.options;
        int iHashCode2 = (iHashCode + (list == null ? 0 : list.hashCode())) * 31;
        T t2 = this.targetValue;
        return iHashCode2 + (t2 != null ? t2.hashCode() : 0);
    }

    public String toString() {
        return "Parameter(currentValue=" + this.currentValue + ", belongItemId=" + this.belongItemId + ", options=" + this.options + ", targetValue=" + this.targetValue + ")";
    }

    public /* synthetic */ Parameter(Object obj, int i2, List list, Object obj2, int i3, g gVar) {
        this((i3 & 1) != 0 ? null : obj, i2, (i3 & 4) != 0 ? null : list, (i3 & 8) != 0 ? null : obj2);
    }
}
