Conflicts: nbproject/project.properties src/java/bean/Pompier.java src/java/servlet/PompierServlet.java src/java/util/TrmtDate.java web/WEB-INF/jspf/formulairePompier.jspf web/WEB-INF/jspf/header.jspf web/WEB-INF/web.xml
124 lines
3.0 KiB
Java
124 lines
3.0 KiB
Java
/*
|
|
* To change this license header, choose License Headers in Project Properties.
|
|
* To change this template file, choose Tools | Templates
|
|
* and open the template in the editor.
|
|
*/
|
|
package bean;
|
|
|
|
import java.util.Calendar;
|
|
import java.util.Objects;
|
|
|
|
/**
|
|
*
|
|
* @author funcha.ahamadi
|
|
*/
|
|
public class Gardes {
|
|
Calendar jourGarde;
|
|
int periode;
|
|
Pompier pompier;
|
|
int disponibilite;
|
|
boolean isInBDD;
|
|
|
|
public Gardes(Calendar jourGarde, int periode, Pompier pompier, int disponibilite, boolean isInBDD) {
|
|
this.jourGarde = jourGarde;
|
|
this.periode = periode;
|
|
this.pompier = pompier;
|
|
this.disponibilite = disponibilite;
|
|
this.isInBDD = isInBDD;
|
|
}
|
|
|
|
public Gardes(Calendar jourGarde, int periode, Pompier pompier) {
|
|
this.jourGarde = jourGarde;
|
|
this.periode = periode;
|
|
this.pompier = pompier;
|
|
}
|
|
|
|
public Calendar getJourGarde() {
|
|
return jourGarde;
|
|
}
|
|
|
|
public void setJourGarde(Calendar jourGarde) {
|
|
this.jourGarde = jourGarde;
|
|
}
|
|
|
|
public int getPeriode() {
|
|
return periode;
|
|
}
|
|
|
|
public void setPeriode(int periode) {
|
|
this.periode = periode;
|
|
}
|
|
|
|
public Pompier getPompier() {
|
|
return pompier;
|
|
}
|
|
|
|
public void setPompier(Pompier pompier) {
|
|
this.pompier = pompier;
|
|
}
|
|
|
|
public int getDisponibilite() {
|
|
return disponibilite;
|
|
}
|
|
|
|
public void setDisponibilite(int disponibilite) {
|
|
this.disponibilite = disponibilite;
|
|
}
|
|
|
|
public boolean isIsInBDD() {
|
|
return isInBDD;
|
|
}
|
|
|
|
public void setIsInBDD(boolean isInBDD) {
|
|
this.isInBDD = isInBDD;
|
|
}
|
|
|
|
@Override
|
|
public int hashCode() {
|
|
int hash = 7;
|
|
hash = 43 * hash + Objects.hashCode(this.jourGarde);
|
|
hash = 43 * hash + this.periode;
|
|
hash = 43 * hash + Objects.hashCode(this.pompier);
|
|
hash = 43 * hash + this.disponibilite;
|
|
hash = 43 * hash + (this.isInBDD ? 1 : 0);
|
|
return hash;
|
|
}
|
|
|
|
@Override
|
|
public boolean equals(Object obj) {
|
|
if (this == obj) {
|
|
return true;
|
|
}
|
|
if (obj == null) {
|
|
return false;
|
|
}
|
|
if (getClass() != obj.getClass()) {
|
|
return false;
|
|
}
|
|
final Gardes other = (Gardes) obj;
|
|
if (this.periode != other.periode) {
|
|
return false;
|
|
}
|
|
if (this.disponibilite != other.disponibilite) {
|
|
return false;
|
|
}
|
|
if (this.isInBDD != other.isInBDD) {
|
|
return false;
|
|
}
|
|
if (!Objects.equals(this.jourGarde, other.jourGarde)) {
|
|
return false;
|
|
}
|
|
if (!Objects.equals(this.pompier, other.pompier)) {
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
|
|
@Override
|
|
public String toString() {
|
|
return "Gardes{" + "jourGarde=" + jourGarde + ", periode=" + periode + ", pompier=" + pompier + ", disponibilite=" + disponibilite + ", isInBDD=" + isInBDD + '}';
|
|
}
|
|
|
|
|
|
}
|