package market.Qms.qcm.vo;

public class list {
	private String id;
	private String text;

	public list(String id, String text) {
		this.id = id;
		this.text = text;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}

	@Override
	public boolean equals(Object obj) {
		// 检验项+取样频次相同则视为相同
		list s2 = (list) obj;
		if (this.id.equals(s2.id) && this.text.equals(s2.text)) {
			return true;
		} else {
			return false;
		}
	}

	@Override
	public int hashCode() {

		final int prime = 31;
		int result = 1;
		result = prime * result + ((id == null) ? 0 : id.hashCode());
		return result;
	}

}
