| Constructor and Description |
|---|
PersonImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAddresses(Address address) |
void |
addNewAddresses(Address newAddress) |
Integer |
calculateAge()
Calculate the age of this person.
|
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.
|
Boolean |
isInRetirement() |
Date[] |
run(byte[] content) |
void |
setCompany(Company company) |
void |
setName(String name)
Name of the person.
|
public Integer calculateAge()
PersoncalculateAge in interface Personpublic Boolean isInRetirement()
isInRetirement in interface Personpublic Company getCompany()
getCompany in interface Personpublic void setName(String name)
PersonName of the person.
public void setCompany(Company company)
setCompany in interface Personpublic void addAddresses(Address address)
addAddresses in interface Personpublic Collection<Address> getAddresses()
getAddresses in interface Personpublic void changeLastAddress(Address address, Boolean isLastOne)
changeLastAddress in interface Personpublic Set<Address> getNewAddresses()
getNewAddresses in interface Personpublic void addNewAddresses(Address newAddress)
addNewAddresses in interface Personpublic String getNickname()
PersongetNickname in interface Personpublic Collection<Company> getHiddenCompanies()
getHiddenCompanies in interface PersonCopyright © 2012-2013. All Rights Reserved.