public class User extends Object
| Constructor and Description |
|---|
User()
Constructs a new user without specifying an ID or display name.
|
User(String id,
String displayName)
Constructs a new user with the specified ID and display name.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getDisplayName()
Gets the display name of the user.
|
String |
getId()
Gets the ID of the user.
|
int |
hashCode() |
void |
setDisplayName(String displayName)
Sets the display name of the user.
|
void |
setId(String id)
Sets the ID of the user.
|
String |
toString() |
User |
withDisplayName(String displayName)
Sets the display name of the user.
|
User |
withId(String id)
Sets the ID of the user.
|
public User()
public String getId()
public void setId(String id)
id - The ID of the user.public User withId(String id)
id - The ID of the user.public String getDisplayName()
public void setDisplayName(String displayName)
displayName - The display name of the user.public User withDisplayName(String displayName)
displayName - The display name of the user.Copyright © 2020. All rights reserved.