package com.firebet.sandbox.shared;

import java.util.Objects;

public class FieldTestPojo {

	private static final long serialVersionUID = 4389753879872L;
	private String fieldId;
	private String fieldName;

	public FieldTestPojo() {
	}

	public FieldTestPojo(final String fieldId, final String fieldName) {
		this.fieldId = fieldId;
		this.fieldName = fieldName;
	}

	public String getFieldId() {
		return fieldId;
	}
	public void setFieldId(String fieldId) {
		this.fieldId = fieldId;
	}
	public String getFieldName() {
		return fieldName;
	}
	public void setFieldName(String fieldName) {
		this.fieldName = fieldName;
	}
	@Override
	public int hashCode() {
		return Objects.hash(fieldId, fieldName);
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		FieldTestPojo other = (FieldTestPojo) obj;
		return Objects.equals(fieldId, other.fieldId) && Objects.equals(fieldName, other.fieldName);
	}

	@Override
	public String toString() {
		return "FieldTestPojo [fieldId=" + fieldId + ", fieldName=" + fieldName + "]";
	}
	
}
