Interface IPersonalData
-
- All Known Subinterfaces:
ISpouseData
- All Known Implementing Classes:
PersonalData,SpouseData
public interface IPersonalDataDefining the personal data of a person.- Author:
- Andi Hotz, (c) Sahits GmbH, 2012 Created on Jul 23, 2012
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetAge(java.time.LocalDateTime current)Compute the current agejava.time.LocalDateTimegetBirthDate()Retrieve the birth dateICitygetBirthPlace()Retrieve the birth placejava.lang.StringgetLastName()Get a players last namejava.lang.StringgetName()Retrieve the players namebooleanisMale()Check if the player is male
-
-
-
Method Detail
-
getName
java.lang.String getName()
Retrieve the players name- Returns:
- first name
-
getLastName
java.lang.String getLastName()
Get a players last name- Returns:
- last name
-
isMale
boolean isMale()
Check if the player is male- Returns:
- flag if the person is male
-
getBirthPlace
ICity getBirthPlace()
Retrieve the birth place- Returns:
- birth city
-
getBirthDate
java.time.LocalDateTime getBirthDate()
Retrieve the birth date- Returns:
- birth date
-
getAge
int getAge(java.time.LocalDateTime current)
Compute the current age- Parameters:
current- date- Returns:
- age in years per
current
-
-