⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 customer.java

📁 我做的ssd9 exercise6 的答案。分享
💻 JAVA
字号:
/**
 * Customer is the entity bean for CustomerController to use.
 * A Customer object encapsulates the information of a customer.
 * This information includes:
 * <ul>
 * <li>The customer's name
 * <li>The customer's password
 * <li>The customer's address
 * <li>The customer's email
 * <li>whether the customer login.
 * </ul>
 * <p>
 * If a customer login, the customer object will contains its information.
 * Otherwise, the customer object contains null for name, pass, address, email. 
 */ 


public class Customer {
	private String name;
	private String password;
	private String email;
	private String address;
	private boolean login;
	
	/**
	 * Class constructor.
	 * 
	 */
	public Customer(){
		super();
		login=false;
	}
	
	/**
     * Se name.
     *
     * @param name  the text of name
     */	
	public void setName(String name){
		this.name=name;
	}
	
	/**
     * Set password.
     *
     * @param password  the text of password
     */	
	public void setPassword(String password){
		this.password=password;
	}
	
	/**
     * Set email.
     *
     * @param email  the text of email
     */	
	public void setEmail(String email){
		this.email=email;
	}
	
	/**
     * Set address.
     *
     * @param address  the text of address
     */	
	public void setAddress(String address){
		this.address=address;
	}
	
	/**
     * Set login.
     *
     * @param login  the value of login
     */	
	public void setLogin(boolean login){
		this.login=login;
	}
	
	/**
     * Get name.
     *
     * @return  the text of name
     */
	public String getName(){
		return this.name;
	}
	
	/**
     * Get password.
     *
     * @return  the text of password
     */	
	public String getPassword(){
		return this.password;
	}
	
	/**
     * Get email.
     *
     * @return  the text of email
     */	
	public String getEmail(){
		return this.email;
	}
	
	/**
     * Get address.
     *
     * @return  the text of address
     */
	public String getAddress(){
		return this.address;
	}
	
	/**
     * Get login.
     *
     * @return  the value of login.
     */	
	public boolean getLogin(){
		return this.login;
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -