modification déclaration hashmap dans Commande
This commit is contained in:
parent
8543fbf45b
commit
0f472d5df2
1
.gitignore
vendored
1
.gitignore
vendored
@ -2,3 +2,4 @@
|
||||
Libraries/*
|
||||
Test Libraries/*
|
||||
/nbproject/private/
|
||||
/build/
|
||||
|
@ -71,7 +71,7 @@ jlink.additionalmodules=
|
||||
jlink.additionalparam=
|
||||
jlink.launcher=true
|
||||
jlink.launcher.name=MusicAndCo
|
||||
main.class=
|
||||
main.class=Test
|
||||
manifest.file=manifest.mf
|
||||
meta.inf.dir=${src.dir}/META-INF
|
||||
mkdist.disabled=false
|
||||
|
@ -25,6 +25,8 @@ public class Test {
|
||||
Commande laCommande = new Commande(1,1,"12/09/2024");
|
||||
lEntreprise.ajouterCommande(laCommande);
|
||||
|
||||
//Ajouter à la commande une ligne de 2 instr1
|
||||
laCommande.ajouter(instr1, 2);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -5,8 +5,10 @@
|
||||
|
||||
package métiers;
|
||||
|
||||
import java.util.Objects;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author ilona
|
||||
@ -15,9 +17,10 @@ public class Commande {
|
||||
|
||||
private int noCom, noVendeur;
|
||||
private String dateCom;
|
||||
private HashMap <Instrument, int> lesLignes = new HashMap();
|
||||
|
||||
|
||||
private final HashMap<Instrument, Integer> lesLignes = new HashMap<>();
|
||||
|
||||
|
||||
public Commande(int noCom, int noVendeur, String dateCom) {
|
||||
this.noCom = noCom;
|
||||
|
Loading…
x
Reference in New Issue
Block a user