|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectch.sahits.game.openpatrician.model.personal.impl.PersonalData
public class PersonalData
| Field Summary | |
|---|---|
private DateObject |
birthDate
|
private ICity |
birthplace
|
private String |
lastName
|
private boolean |
male
|
private String |
name
|
| Constructor Summary | |
|---|---|
PersonalData(String name,
String lastName,
boolean male,
ICity birthplace,
DateObject birthDate)
Initialize personal data without portrait |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
int |
getAge(DateObject now)
Compute the current age |
DateObject |
getBirthDate()
Retrieve the birth date |
ICity |
getBirthPlace()
Retrieve the birth place |
String |
getLastName()
Get a players last name |
String |
getName()
Retrieve the players name |
int |
hashCode()
|
boolean |
isMale()
Check if the player is male |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private final String name
private final String lastName
private final boolean male
private final ICity birthplace
private final DateObject birthDate
| Constructor Detail |
|---|
public PersonalData(String name,
String lastName,
boolean male,
ICity birthplace,
DateObject birthDate)
name - lastName - male - birthplace - birthDate - | Method Detail |
|---|
public String getName()
IPersonalData
getName in interface IPersonalDatapublic String getLastName()
IPersonalData
getLastName in interface IPersonalDatapublic boolean isMale()
IPersonalData
isMale in interface IPersonalDatapublic ICity getBirthPlace()
IPersonalData
getBirthPlace in interface IPersonalDatapublic DateObject getBirthDate()
IPersonalData
getBirthDate in interface IPersonalDatapublic int getAge(DateObject now)
IPersonalData
getAge in interface IPersonalDatapublic int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||