forked from daveagp/java_visualize
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPlageHoraire.java
More file actions
31 lines (31 loc) · 735 Bytes
/
PlageHoraire.java
File metadata and controls
31 lines (31 loc) · 735 Bytes
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
package studsabstract;
import java.util.Date;
public class PlageHoraire extends Choix {
private Date dateDebut, dateFin;
public PlageHoraire(final Date debut, final Date fin) {
super();
dateDebut = debut;
dateFin = fin;
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (!(obj instanceof PlageHoraire))
return false;
PlageHoraire other = (PlageHoraire) obj;
if (dateDebut == null) {
if (other.dateDebut != null)
return false;
} else if (!dateDebut.equals(other.dateDebut))
return false;
if (dateFin == null) {
if (other.dateFin != null)
return false;
} else if (!dateFin.equals(other.dateFin))
return false;
return true;
}
}