package com.fongmi.bear.bean; import com.google.gson.annotations.SerializedName; public class Class { @SerializedName("type_id") private String typeId; @SerializedName("type_name") private String typeName; private boolean select; public String getTypeId() { return typeId; } public String getTypeName() { return typeName; } public boolean isSelect() { return select; } public void setSelect(boolean select) { this.select = select; } @Override public boolean equals(Object obj) { if (this == obj) return true; if (!(obj instanceof Class)) return false; Class it = (Class) obj; return getTypeId().equals(it.getTypeId()); } }