package com.jiuqi.mobile.lbs.intf.internal;
import java.io.Serializable;
public class LBSErrorCode implements Serializable{
/**
*
*/
private static final long serialVersionUID = 8458787210822784312L;
private int code;
private String key;
private String describe;
public int getCode() {
return code;
}
public void setCode(int code) {
this.code = code;
}
public String getKey() {
return key;
}
public void setKey(String key) {
this.key = key;
}
public String getDescribe() {
return describe;
}
public void setDescribe(String describe) {
this.describe = describe;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + code;
return result;
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false;
LBSErrorCode other = (LBSErrorCode) obj;
if (code != other.code)
return false;
return true;
}
@Override
public String toString() {
return code+":"+key+"("+describe+")";
}
}