-package hotel;\r
-\r
-import java.io.Serializable;\r
-\r
-\r
-/**\r
- * Applications reparties\r
- * TP - Exercice \r
- * Chaine d'hotels\r
- * \r
- * Classe regroupant les informations d'une reservation\r
- * \r
- * @author Toto\r
- * @version 1.0\r
- */\r
-public class Infos implements Serializable {\r
-\r
- private static final long serialVersionUID = -6199402168457446943L;\r
-\r
- private String nomClient;\r
- private String nomHotel;\r
- private String date;\r
- private int nbchambres;\r
- \r
- public Infos() {\r
- this.nomClient = "";\r
- this.nomHotel = "";\r
- this.date = "";\r
- this.nbchambres = 0;\r
- }\r
- \r
- public Infos(String client, String hotel, String date, int nb) {\r
- this.nomClient = client;\r
- this.nomHotel = hotel;\r
- this.date = date;\r
- this.nbchambres = nb;\r
- }\r
- \r
- public String getNomClient() {\r
- return this.nomClient;\r
- }\r
- \r
- public void setNomClient(String nom) {\r
- this.nomClient = nom;\r
- }\r
- \r
- public String getNomHotel() {\r
- return this.nomHotel;\r
- }\r
- \r
- public void setNomHotel(String nom) {\r
- this.nomHotel = nom;\r
- }\r
- \r
- public String getDate() {\r
- return this.date;\r
- }\r
- \r
- public void setDate(String d) {\r
- this.date = d;\r
- }\r
- \r
- public int getNbChambres() {\r
- return this.nbchambres;\r
- }\r
- \r
- public void setNbChambres(int nb) {\r
- this.nbchambres = nb;\r
- }\r
- \r
- public String toString() {\r
- String str = "";\r
- str = str + this.nomClient + " " + this.nomHotel + " " + this.date + " " + this.nbchambres;\r
- return str;\r
- }\r
- \r
-}\r
+package hotel;
+
+import java.io.Serializable;
+
+
+/**
+ * Applications reparties
+ * TP - Exercice
+ * Chaine d'hotels
+ *
+ * Classe regroupant les informations d'une reservation
+ *
+ * @author Toto
+ * @version 1.0
+ */
+public class Infos implements Serializable {
+
+ private static final long serialVersionUID = -6199402168457446943L;
+
+ private String nomClient;
+ private String nomHotel;
+ private String date;
+ private int nbchambres;
+
+ public Infos() {
+ this.nomClient = "";
+ this.nomHotel = "";
+ this.date = "";
+ this.nbchambres = 0;
+ }
+
+ public Infos(String client, String hotel, String date, int nb) {
+ this.nomClient = client;
+ this.nomHotel = hotel;
+ this.date = date;
+ this.nbchambres = nb;
+ }
+
+ public String getNomClient() {
+ return this.nomClient;
+ }
+
+ public void setNomClient(String nom) {
+ this.nomClient = nom;
+ }
+
+ public String getNomHotel() {
+ return this.nomHotel;
+ }
+
+ public void setNomHotel(String nom) {
+ this.nomHotel = nom;
+ }
+
+ public String getDate() {
+ return this.date;
+ }
+
+ public void setDate(String d) {
+ this.date = d;
+ }
+
+ public int getNbChambres() {
+ return this.nbchambres;
+ }
+
+ public void setNbChambres(int nb) {
+ this.nbchambres = nb;
+ }
+
+ public String toString() {
+ String str = "";
+ str = str + this.nomClient + " " + this.nomHotel + " " + this.date + " " + this.nbchambres;
+ return str;
+ }
+
+}