-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathClient.java
65 lines (54 loc) · 1.26 KB
/
Client.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
import java.util.Objects;
public class Client{
private String nom;
private String prenom;
private String numero_tel;
private String adresseMail;
public Client(String nom, String prenom, String numero_tel,String adresseMail) {
super();
this.nom = nom;
this.prenom = prenom;
this.numero_tel = numero_tel;
this.adresseMail = adresseMail;
}
@Override
public int hashCode() {
return Objects.hash(nom, numero_tel, prenom);
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false;
Client other = (Client) obj;
return Objects.equals(nom, other.nom) && Objects.equals(numero_tel, other.numero_tel)
&& Objects.equals(prenom, other.prenom);
}
public String getNom() {
return nom;
}
public void setNom(String nom) {
this.nom = nom;
}
public String getPrenom() {
return prenom;
}
public void setPrenom(String prenom) {
this.prenom = prenom;
}
public String getNumero_tel() {
return numero_tel;
}
public void setNumero_tel(String numero_tel) {
this.numero_tel = numero_tel;
}
public String getAdresseMail() {
return adresseMail;
}
public void setAdresseMail(String adresseMail) {
this.adresseMail = adresseMail;
}
}