public class Person extends AbstractBean
| Constructor and Description |
|---|
Person() |
| Modifier and Type | Method and Description |
|---|---|
static Person |
createPerson(String firstName,
String lastName,
String email)
Creates a person given first name, last name and email.
|
boolean |
equals(Object arg0)
Compares two objects with each other.
|
String |
getEmail()
Gets the email of the person.
|
String |
getFirstName()
Gets the first name of the person.
|
String |
getLastName()
Gets the last name of the person.
|
String |
getName()
This will return the formatted name.
|
void |
setEmail(String email)
Sets the email of the person.
|
void |
setFirstName(String firstName)
Sets the first name of the person.
|
void |
setLastName(String lastName)
Sets the last name of the person.
|
void |
setName(String firstName,
String lastName)
Single function to set both first and last name of the person.
|
String |
toString() |
getId, hashCode, isDeleted, setDeleted, setIdpublic static Person createPerson(String firstName, String lastName, String email)
firstName - first name of the person.lastName - last name of the person.email - email address of the person.public void setName(String firstName, String lastName)
firstName - the first name of the person.lastName - the last name of the person.public String getName()
public void setFirstName(String firstName)
firstName - the first name of the personpublic String getFirstName()
public void setLastName(String lastName)
lastName - the last name of the personpublic String getLastName()
public void setEmail(String email)
email - the email of the personpublic String getEmail()
public boolean equals(Object arg0)
AbstractBeanequals in class AbstractBeanarg0 - the object that should be compared to this AbstractBeanCopyright © 2017. All rights reserved.