package cn.com.qmth.am.bean; import java.util.Objects; public class DataKey { private int index; private String key; public int getIndex() { return index; } public void setIndex(int index) { this.index = index; } public String getKey() { return key; } public void setKey(String key) { this.key = key; } @Override public int hashCode() { return Objects.hash(key); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; DataKey other = (DataKey) obj; return Objects.equals(key, other.key); } }