Esempio n. 1
0
 public void removerTime(Time time) throws UsuarioNaoEncontradoException {
   // List<Olheiro> olheirosContratados = null;
   if (time != null) {
     int index = repositorioTime.procurarIndice(time);
     if (index != -1) {
       /*	TimesASeremRemovidos = repositorioTime
       if (TimesASeremRemovidos != null){
       	for (Time t: TimesASeremRemovidos){
       		repositorioTime.removerTime(t);
       	}
       }*/
       repositorioTime.removerTime(time);
     } else throw new UsuarioNaoEncontradoException();
   } else {
     throw new IllegalArgumentException();
   }
 }