All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.absmartly.sdk.json.CustomFieldValue Maven / Gradle / Ivy

package com.absmartly.sdk.json;

import lombok.Getter;
import lombok.Setter;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;

@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties(ignoreUnknown = true)
@Getter
@Setter
public class CustomFieldValue {
	private String name;
	private String type;
	private String value;

	public CustomFieldValue() {}

	@Override
	public boolean equals(Object o) {
		if (this == o)
			return true;
		if (o == null || getClass() != o.getClass())
			return false;

		CustomFieldValue that = (CustomFieldValue) o;

		if (name != null ? !name.equals(that.name) : that.name != null)
			return false;
		if (type != null ? !type.equals(that.type) : that.type != null)
			return false;
		return value != null ? value.equals(that.value) : that.value == null;
	}

	@Override
	public int hashCode() {
		int result = name != null ? name.hashCode() : 0;
		result = 31 * result + (type != null ? type.hashCode() : 0);
		result = 31 * result + (value != null ? value.hashCode() : 0);
		return result;
	}

	@Override
	public String toString() {
		return "CustomFieldValue{" +
				"name='" + name + '\'' +
				", type='" + type + '\'' +
				", value='" + value + '\'' +
				'}';
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy