Ejemplo n.º 1
0
  @Override
  public void update(Cotisation obj) {

    if (!cotisations.contains(obj)) {
      throw new IndexOutOfBoundsException("L'objet a mettre a jour n'est pas dans la liste");
    }

    Cotisation cot = cotisations.get(cotisations.indexOf(obj));

    cot.setLibelle(obj.getLibelle());
    cot.setTaux(obj.getTaux());
  }