-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCompetition.java
65 lines (60 loc) · 1.52 KB
/
Competition.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
package competition;
public class Competition {
private String nomCompet;
private String dateCompet;
private String villeCompet;
private int codeFormat;
private int codeTypeRound;
private int codeTypeCompet;
private String[] listCriteres;
// liste participants
public Competition(String nomCompet, String dateCompet, String villeCompet) {
setNomCompet(nomCompet);
setDateCompet(dateCompet);
setVilleCompet(villeCompet);
}
//mutateurs
public void setNomCompet(String nomCompet) {
this.nomCompet = nomCompet;
}
public void setDateCompet(String dateCompet) {
this.dateCompet = dateCompet;
}
public void setVilleCompet(String villeCompet) {
this.villeCompet = villeCompet;
}
public void setCodeFormat(int codeFormat) {
this.codeFormat = codeFormat;
}
public void setCodeTypeRound(int codeTypeRound) {
this.codeTypeRound = codeTypeRound;
}
public void setCodeTypeCompet(int codeTypeCompet) {
this.codeTypeCompet = codeTypeCompet;
}
public void setListCriteres(String[] list) {
this.listCriteres = list;
}
// accesseurs
public String nomCompet() {
return this.nomCompet;
}
public String dateCompet() {
return this.dateCompet;
}
public String villeCompet() {
return this.villeCompet;
}
public int codeFormat() {
return this.codeFormat;
}
public int codeTypeRound() {
return this.codeTypeRound;
}
public int codeTypeCompet() {
return this.codeTypeCompet;
}
public String[] listCritere(){
return this.listCriteres;
}
}