@Override public int hashCode() { int result = 1; result += name.hashCode() * 37; result += status.hashCode() * 37; return result; }
@Override public boolean equals(final Object other) { if (this == other) { return true; } if (other instanceof Team) { Team otherTeam = (Team) other; return name.equals(otherTeam.name) && status.equals(otherTeam.status); } return false; }