📄 userdata.java
字号:
/** * Define a User data class which is an instance for each user. */package eols.bean.user;import java.util.List;/** * @author Yiwei * */public class UserData { public String Fname; public String Lname; public String Id; public String Passwd; public String AccessType; public String Dbirth; public String Address; public String City; public String State; public String Zipcode; public String Phone; public String Email;// List<long> booklist; public String bookList; public UserData() { Fname = "User"; Lname = "User"; Id = "0"; Passwd = "password"; AccessType = "user"; Dbirth = "dd/mm/yyyy"; Address = "null"; City = "Atlanta"; State = "GA"; Zipcode = "30303"; Phone = "404-000-0000"; Email = "null@student.gsu.edu";// booklist = new List(0,false); bookList = "111,222,333"; }; /** * copy constructor * @param user */ public UserData(UserData user) { Fname = user.Fname; Lname = user.Lname; Id = user.Id; Passwd = user.Passwd; AccessType = user.AccessType; Dbirth = user.Dbirth; Address = user.Address; City = user.City; State = user.State; Zipcode = user.Zipcode; Phone = user.Phone; Email = user.Email;// booklist = new List(0,false); bookList = user.bookList; } /** * @return the fname */ public String getFname() { return Fname; } /** * @param fname the fname to set */ public void setFname(String fname) { Fname = fname; } /** * @return the lname */ public String getLname() { return Lname; } /** * @param lname the lname to set */ public void setLname(String lname) { Lname = lname; } /** * @return the id */ public String getId() { return Id; } /** * @param id the id to set */ public void setId(String id) { Id = id; } /** * @return the passwd */ public String getPasswd() { return Passwd; } /** * @param passwd the passwd to set */ public void setPasswd(String passwd) { Passwd = passwd; } /** * @return the accessType */ public String getAccessType() { return AccessType; } /** * @param accessType the accessType to set */ public void setAccessType(String accessType) { AccessType = accessType; } /** * @return the dbirth */ public String getDbirth() { return Dbirth; } /** * @param dbirth the dbirth to set */ public void setDbirth(String dbirth) { Dbirth = dbirth; } /** * @return the address */ public String getAddress() { return Address; } /** * @param address the address to set */ public void setAddress(String address) { Address = address; } /** * @return the city */ public String getCity() { return City; } /** * @param city the city to set */ public void setCity(String city) { City = city; } /** * @return the state */ public String getState() { return State; } /** * @param state the state to set */ public void setState(String state) { State = state; } /** * @return the zipcode */ public String getZipcode() { return Zipcode; } /** * @param zipcode the zipcode to set */ public void setZipcode(String zipcode) { Zipcode = zipcode; } /** * @return the phone */ public String getPhone() { return Phone; } /** * @param phone the phone to set */ public void setPhone(String phone) { Phone = phone; } /** * @return the email */ public String getEmail() { return Email; } /** * @param email the email to set */ public void setEmail(String email) { Email = email; } /** * @return the bookList */ public String getBookList() { return bookList; } /** * @param bookList the bookList to set */ public void setBookList(String bookList) { this.bookList = bookList; }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -