java.lang.Object
com.prog3.ipt.Model.CitizenClasses.User
com.prog3.ipt.Model.CitizenClasses.Citizen
Citizen is a class that extends User abstract class which represents a Citizen and his data registered
into the system
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
int
hashCode()
(package private) void
setCitizenID
(String citizenID) (package private) void
setRegistrationDate
(LocalDate registrationDate) (package private) void
setUsername
(String username) toString()
Methods inherited from class com.prog3.ipt.Model.CitizenClasses.User
getBirthDate, getEmail, getName, getPassword, getSurname, setBirthDate, setEmail, setName, setPassword, setSurname
-
Field Details
-
citizenID
-
registrationDate
-
username
-
-
Constructor Details
-
Citizen
public Citizen(String citizenID, String name, String surname, LocalDate birthDate, String email, String password, String username) Citizen constructor- Parameters:
citizenID
- Index which uniquely identifies a citizenname
- Citizen namesurname
- Citizen surnamebirthDate
- Citizen birthdateemail
- Citizen email which is used to register and login into the systempassword
- Citizen password which is used to log into the systemusername
- Citizen username which is used to log into the system
-
Citizen
public Citizen(String name, String surname, LocalDate birthDate, String email, String password, String username) Citizen constructor- Parameters:
name
- Citizen namesurname
- Citizen surnamebirthDate
- Citizen birthdateemail
- Citizen email which is used to register and login into the systempassword
- Citizen password which is used to log into the systemusername
- Citizen username which is used to log into the system
-
-
Method Details