@Override public boolean equals(Object object){
  if (this == object) {
    return true;
  }
  if ((null == object) || (getClass() != object.getClass())) {
    return false;
  }
  final Team other=(Team)object;
  return (id == other.id) && Objects.equals(players,other.players);
}

@ Override public boolean equals ( Object object ) { if ( this == object ) { return true ; } if ( ( null == object ) || ( getClass ( ) != object . getClass ( ) ) ) { return false ; } final Team other = ( Team ) object ; return ( id == other . id ) && Objects . equals ( players , other . players ) ; }
two teams are equal if their ids and players are equal . < p / > override < code > java . lang . object # equals ( object )
