correctif bug et ajout fonctionnalité

This commit is contained in:
2022-11-16 11:14:29 +01:00
parent 124dfd8a71
commit a444123b99
6 changed files with 209 additions and 168 deletions

View File

@@ -40,7 +40,9 @@ public class GroupeNP implements Groupe {
public GroupeNP(int id, String name, int min, int max, TypeGroupe type, Groupe pere){
Objects.requireNonNull(name,"On ne peut pas créer un groupe dont le nom est null");
this.id=id;
this.nextId++;
if(id>this.nextId){
this.nextId=id;
}
this.name=name;
this.min=min;
this.max=max;