-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLettre.java
54 lines (37 loc) · 882 Bytes
/
Lettre.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
package EncryptionUtils;
/**
* Created by brahim on 3/14/17.
*/
public class Lettre {
private char lettre;
private int rang;
public Lettre(char lettre, int rang) {
this.lettre = lettre;
this.rang = rang;
}
public char getLettre() {
return lettre;
}
public void setLettre(char lettre) {
this.lettre = lettre;
}
public int getRang() {
return rang;
}
public void setRang(int rang) {
this.rang = rang;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
Lettre lettre1 = (Lettre) o;
return lettre == lettre1.lettre;
}
@Override
public String toString() {
if(this == null)
return "";
return ""+lettre;
}
}