User
Contents
[
Hide
]
Inheritance: java.lang.Object
public class User
Represents user properties.
Constructors
Constructor | Description |
---|---|
User() | Initializes new instance of User class. |
User(int id, String name, Role role) | Initializes new instance of User class. |
Methods
Method | Description |
---|---|
getId() | User Id |
setId(int value) | User Id |
getName() | User name |
setName(String value) | User name |
getEmail() | |
setEmail(String value) | |
getRole() | Role |
setRole(Role value) | Role |
toString() |
User()
public User()
Initializes new instance of User class.
User(int id, String name, Role role)
public User(int id, String name, Role role)
Initializes new instance of User class.
Parameters:
Parameter | Type | Description |
---|---|---|
id | int | The user id. |
name | java.lang.String | The user name. |
role | Role | The user role. |
getId()
public final int getId()
User Id
Returns: int -
setId(int value)
public final void setId(int value)
User Id
Parameters:
Parameter | Type | Description |
---|---|---|
value | int |
getName()
public final String getName()
User name
Returns: java.lang.String -
setName(String value)
public final void setName(String value)
User name
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.String |
getEmail()
public final String getEmail()
Returns: java.lang.String -
setEmail(String value)
public final void setEmail(String value)
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.String |
getRole()
public final Role getRole()
Role
Returns: Role -
setRole(Role value)
public final void setRole(Role value)
Role
Parameters:
Parameter | Type | Description |
---|---|---|
value | Role |
toString()
public String toString()
Returns: java.lang.String