📄 registereduser.java
字号:
package com.wrox.expertj2ee.ticket.customer;
import java.io.Serializable;
/**
* Simple target object for data binding. Includes
* two Address nested properties.
*
* @since Jan 7, 2003
* @author Rod Johnson
*/
public class RegisteredUser implements Serializable {
private String email;
private Address billingAddress;
private Address deliveryAddress;
private int birthYear;
private String nonbound;
/**
* Constructor for RegisteredUser.
*/
public RegisteredUser() {
super();
billingAddress = new Address();
deliveryAddress = new Address();
}
/**
* Gets the billingAddress.
* @return Returns a Address
*/
public Address getBillingAddress() {
return billingAddress;
}
/**
* Sets the billingAddress.
* @param billingAddress The billingAddress to set
*/
public void setBillingAddress(Address billingAddress) {
this.billingAddress = billingAddress;
}
/**
* Gets the deliveryAddress.
* @return Returns a Address
*/
public Address getDeliveryAddress() {
return deliveryAddress;
}
/**
* Sets the deliveryAddress.
* @param deliveryAddress The deliveryAddress to set
*/
public void setDeliveryAddress(Address deliveryAddress) {
this.deliveryAddress = deliveryAddress;
}
/**
* Gets the email.
* @return Returns a String
*/
public String getEmail() {
return email;
}
/**
* Sets the email.
* @param email The email to set
*/
public void setEmail(String email) {
this.email = email;
}
/**
* Gets the birthYear.
* @return Returns a int
*/
public int getBirthYear() {
return birthYear;
}
/**
* Sets the birthYear.
* @param birthYear The birthYear to set
*/
public void setBirthYear(int birthYear) {
this.birthYear = birthYear;
}
public String toString() {
return "RegisteredUser: email='" + email + "' birthYear=" + birthYear + " nonbound='" + nonbound + "'";
}
/**
* Gets the nonbound value.
* @return Returns a String
*/
public String getNonbound() {
return nonbound;
}
/**
* Sets the nonbound value.
* @param nonbound The nonbound to set
*/
public void setNonbound(String nonbound) {
this.nonbound = nonbound;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -