package com.ss.android.ugc.aweme.im.sdk.chat.data.model;

import X.M12;
import com.bytedance.covode.number.Covode;
import java.util.Objects;

public final class NamedValue {
    public final String name;
    public final Content value;

    static {
        Covode.recordClassIndex(84110);
    }

    public static /* synthetic */ NamedValue copy$default(NamedValue namedValue, String str, Content content, int i, Object obj) {
        if ((i & 1) != 0) {
            str = namedValue.name;
        }
        if ((i & 2) != 0) {
            content = namedValue.value;
        }
        return namedValue.copy(str, content);
    }

    private Object[] getObjects() {
        return new Object[]{this.name, this.value};
    }

    public final NamedValue copy(String str, Content content) {
        M12.LIZ(str, content);
        return new NamedValue(str, content);
    }

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

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

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

    public final String getName() {
        return this.name;
    }

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

    public NamedValue(String str, Content content) {
        M12.LIZ(str, content);
        this.name = str;
        this.value = content;
    }
}
