@Override public boolean equals(Object other){
  if (other instanceof Race) {
    Race otherRace=(Race)other;
    return id.equals(otherRace.id);
  }
  return false;
}

@ Override public boolean equals ( Object other ) { if ( other instanceof Race ) { Race otherRace = ( Race ) other ; return id . equals ( otherRace . id ) ; } return false ; }
the race is equal if it has the same id .
