public class User extends Object
Constructor and Description |
---|
User(int id,
String userName,
String password,
String firstName,
String lastName,
String gender,
int age,
String email,
String phone,
int status)
Creates a User instance with the parameters specified.
|
Modifier and Type | Method and Description |
---|---|
int |
getAge()
Returns the age property of a User instance.
|
String |
getEmail()
Returns the email property of a User instance.
|
String |
getFirstName()
Returns firstName property of a User instance.
|
Gender |
getGender()
Returns the gender property of a User instance.
|
int |
getId()
Returns the id property of a User instance
|
String |
getLastName()
Returns the lastName property of a User instance.
|
String |
getPassword()
Returns the password property of a User instance.
|
String |
getPhone()
Returns the phone property of a User instance.
|
String |
getUndocumentedProperty() |
String |
getUserName()
Returns the userName property of a User instance.
|
int |
getUserStatus() |
void |
setAge(int age)
Sets the age property of a User instance to the parameter.
|
void |
setEmail(String email)
Sets the email property of a User instance to the parameter.
|
void |
setFirstName(String firstName)
Sets the firstName property of a User instance to the parameter.
|
void |
setGender(String gender)
Sets the gender property of a User instance to the parameter.
|
void |
setId(int id)
Sets the id property of a User instance to the parameter.
|
void |
setLastName(String lastName)
Sets the lastName property of a User instance to the parameter.
|
void |
setPassword(String password)
Sets the password property of a User instance to the parameter.
|
void |
setPhone(String phone)
Sets the phone property of a User instance to the parameter.
|
void |
setUndocumentedProperty(String undocumentedProperty) |
void |
setUserName(String userName)
Sets the userName property of a User instance to the parameter.
|
void |
setUserStatus(int status)
Sets the status of this User instance.
|
public User(int id, String userName, String password, String firstName, String lastName, String gender, int age, String email, String phone, int status)
id
- the unique id for this User instanceuserName
- the unique username for this User instancepassword
- the unique password for this User instancefirstName
- the first name for this User instancelastName
- the last name for this User instancegender
- the gender for this User instanceage
- the age value for this User instanceemail
- the email associated with this User instancephone
- the phone number associated with this User instancestatus
- the status associated with this User instancepublic int getId()
public void setId(int id)
id
- the unique id for this User instancepublic String getUserName()
public void setUserName(String userName)
userName
- the user name for this User instancepublic String getPassword()
public void setPassword(String password)
password
- the password associated with this User instancepublic String getFirstName()
public void setFirstName(String firstName)
firstName
- the first name for this User instancepublic String getLastName()
public void setLastName(String lastName)
lastName
- the last name for this User instancepublic Gender getGender()
public void setGender(String gender)
gender
- the gender for this User instancepublic int getAge()
public void setAge(int age)
age
- the age value for this User instancepublic String getEmail()
public void setEmail(String email)
email
- the email associated with this User instancepublic String getPhone()
public void setPhone(String phone)
phone
- the phone number associated with this User instancepublic int getUserStatus()
public void setUserStatus(int status)
status
- an integer representing the status of this User instancepublic String getUndocumentedProperty()
public void setUndocumentedProperty(String undocumentedProperty)
Copyright © 2017 – 2022 Eclipse Foundation. All rights reserved.
Use is subject to license terms.