public boolean equals(Role otherRole) { if (otherRole == null) return false; if (this.getRole().equals(otherRole.getRole())) return true; else return false; }