debut affichage arborescence
This commit is contained in:
@@ -38,7 +38,7 @@ public class AbstractChangementFactoryNP implements AbstractChangementFactory {
|
||||
// la méthode value() d'un hashmap retourne la collection des valeurs.
|
||||
// Il faut transformer la collection en Set.
|
||||
// Un constructeur de HashSet permet de faire cette opération.
|
||||
Set<Changement> out = new HashSet(this.brain.values());
|
||||
Set<Changement> out = new HashSet<Changement>(this.brain.values());
|
||||
return out;
|
||||
}
|
||||
|
||||
@@ -96,7 +96,7 @@ public class AbstractChangementFactoryNP implements AbstractChangementFactory {
|
||||
Objects.requireNonNull(A,"Le groupe d'origine ne peut pas être null");
|
||||
Objects.requireNonNull(B,"Le groupe d'arrivée ne peut pas être null");
|
||||
Objects.requireNonNull(e,"L'étudiant ne peut pas être null");
|
||||
|
||||
|
||||
Changement c = new ChangementNP(A,e,B);
|
||||
this.brain.put(Integer.valueOf(c.getId()),c);
|
||||
}
|
||||
|
Reference in New Issue
Block a user