if equals is generic we don't need the switch statement.