Example #1
0
  @Override
  public int hashCode() {
    int result = 1;
    result += name.hashCode() * 37;
    result += status.hashCode() * 37;

    return result;
  }
Example #2
0
  @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;
  }