/* (non-Javadoc) * @see java.lang.Object#equals(java.lang.Object) */ @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } MenuItem other = (MenuItem) obj; if (url == null) { if (other.url != null) { return false; } } else if (!url.equals(other.url)) { return false; } if (hidden != other.hidden) { return false; } if (parent == null) { if (other.parent != null) { return false; } } else if (!parent.equals(other.parent)) { return false; } if (roles == null) { if (other.roles != null) { return false; } } else if (!roles.equals(other.roles)) { return false; } if (id == null) { if (other.id != null) { return false; } } else if (!id.equals(other.id)) { return false; } if (labelCode == null) { if (other.labelCode != null) { return false; } } else if (!labelCode.equals(other.labelCode)) { return false; } if (messageCode == null) { if (other.messageCode != null) { return false; } } else if (!messageCode.equals(other.messageCode)) { return false; } return true; }