Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package modelo;
- import java.util.ArrayList;
- import java.util.List;
- import enums.NombresTiendas;
- public class Compradores {
- private String nombre;
- private Boolean habitual;
- private Integer mediaGasto;
- private List<NombresTiendas> nomTiendaLST;
- public Compradores() {
- }
- public Compradores(String nombreAux, Boolean habitualAux, Integer mediaGastoAux,
- List<NombresTiendas> nomTiendaLSTAux) {
- nombre = nombreAux;
- habitual = habitualAux;
- mediaGasto = mediaGastoAux;
- if (nomTiendaLSTAux != null) {
- nomTiendaLST = nomTiendaLSTAux;
- }
- else {
- nomTiendaLST = new ArrayList<NombresTiendas>();
- }
- }
- public String getNombre() {
- return nombre;
- }
- public void setNombre(String nombreAux) {
- nombre = nombreAux;
- }
- public Boolean getHabitual() {
- return habitual;
- }
- public void setHabitual(Boolean habitualAux) {
- habitual = habitualAux;
- }
- public Integer getMediaGasto() {
- return mediaGasto;
- }
- public void setMediaGasto(Integer mediaGastoAux) {
- mediaGasto = mediaGastoAux;
- }
- public List<NombresTiendas> getNomTiendaLST() {
- return nomTiendaLST;
- }
- public void setNomTiendaLST(List<NombresTiendas> nomTiendaLSTAux) {
- nomTiendaLST = nomTiendaLSTAux;
- }
- public String toString() {
- return nombre + " es un cliente de El Corte Inglés, " + habitual
- + " es habitual en la tienda. Gasta una media de " + mediaGasto
- + " € al año. Sin duda, su tienda favorita es " + nomTiendaLST;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement