/** @see java.lang.Object#equals(java.lang.Object) */ @Override public boolean equals(final Object obj) { if (null == obj) { return false; } if (!(obj instanceof Role)) { return false; } else { Role role = (Role) obj; if (null == this.getId() || null == role.getId()) { return false; } else { return this.getId().equals(role.getId()); } } }
public Role(final Role role) { this(role.getId(), role.getName().trim()); }