X-Git-Url: https://git.piment-noir.org/?p=TD_SR.git;a=blobdiff_plain;f=TD3%2Fhotel%2FInfos.java;h=0eba859a9d64665c639c2e51da5e276b522e6388;hp=3c881c05971f6075aac24ef5ee58ac457d242146;hb=321de3f1ad537e7f9c313326ac50c45f2b6e9b5b;hpb=3a8c8f1926734c79be64af8debbc807ee2eabb5e diff --git a/TD3/hotel/Infos.java b/TD3/hotel/Infos.java index 3c881c0..0eba859 100644 --- a/TD3/hotel/Infos.java +++ b/TD3/hotel/Infos.java @@ -1,77 +1,77 @@ -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; - } - -} +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; + } + +}