public interface Person
This is the Person entity. We save each person in a database.
| Modifier and Type | Method and Description |
|---|---|
void |
addAddress(Address address) |
void |
addNewAddress(Address newAddress) |
Integer |
calculateAge()
Calculate the age of this person.
|
Collection<Company> |
calculateOldCompanies() |
void |
changeLastAddress(Address address,
Boolean isLastOne) |
Collection<Address> |
getAddresses() |
Company |
getCompany() |
Collection<Company> |
getHiddenCompanies() |
String |
getName()
Name of the person.
|
Set<Address> |
getNewAddresses() |
String |
getNickname()
Nickname will be "calculated" from name.
|
Collection<Company> |
getOldCompanies() |
Boolean |
isInRetirement() |
Date[] |
run(byte[] content) |
void |
setCompany(Company company) |
void |
setName(String name)
Name of the person.
|
Integer calculateAge()
Date[] run(byte[] content)
Collection<Company> calculateOldCompanies()
String getName()
Name of the person.
void setName(String name)
Name of the person.
Collection<Address> getAddresses()
void addAddress(Address address)
Company getCompany()
void setCompany(Company company)
void addNewAddress(Address newAddress)
String getNickname()
Collection<Company> getHiddenCompanies()
Boolean isInRetirement()
Collection<Company> getOldCompanies()
Copyright © 2012-2014. All Rights Reserved.