@Override public int hashCode() { int result = 37 + (null == comments ? 0 : comments.hashCode()); result = 31 * result + (null == key ? 0 : key.hashCode()); result = 31 * result + (null == priority ? 0 : priority.hashCode()); result = 31 * result + (null == resolution ? 0 : resolution.hashCode()); result = 31 * result + (null == severity ? 0 : severity.hashCode()); result = 31 * result + (null == status ? 0 : status.hashCode()); result = 31 * result + (null == summary ? 0 : summary.hashCode()); result = 31 * result + (null == type ? 0 : type.hashCode()); result = 31 * result + (null == description ? 0 : description.hashCode()); return 31 * result + (null == id ? 0 : id.hashCode()); }
@Override public boolean equals(Object object) { if (this == object) { return true; } if (!(object instanceof Issue)) { return false; } Issue that = (Issue) object; if (null != comments ? !comments.equals(that.comments) : null != that.comments) { return false; } if (null != key ? !key.equals(that.key) : null != that.key) { return false; } if (null != priority ? !priority.equals(that.priority) : null != that.priority) { return false; } if (null != resolution ? !resolution.equals(that.resolution) : null != that.resolution) { return false; } if (null != severity ? !severity.equals(that.severity) : null != that.severity) { return false; } if (null != status ? !status.equals(that.status) : null != that.status) { return false; } if (null != summary ? !summary.equals(that.summary) : null != that.summary) { return false; } if (null != type ? !type.equals(that.type) : null != that.type) { return false; } if (null != description ? !description.equals(that.description) : null != that.description) { return false; } if (null != id ? !id.equals(that.id) : null != that.id) { return false; } return true; }