Class User
java.lang.Object
com.montytskyi.Userables.Implementations.User
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
cancelRent
(Rentable currentRent) The method implemented from the interface 'Userable' which goal is to cancel user's existing rentvoid
The method implemented from the interface 'Userable' which goal is to edit existing user's rentgetEmail()
The getter for user's emailgetName()
The getter method for the user's nameThe getter method for user's phone numberThe getter for user's surnamevoid
payForRent
(Rentable currentRent) The method implemented from the interface 'Userable' which goal is to provide a payment for the rentThe method implemented from the interface 'Userable' which goal is to rent the place for the uservoid
The setter method for user's emailvoid
The setter for the user's namevoid
setPhoneNumber
(String phoneNumber) The setter method for user's phone numbervoid
setSurname
(String surname) The setter method for user's surname
-
Constructor Details
-
User
public User()The empty constructor of a class -
User
-
-
Method Details
-
rent
The method implemented from the interface 'Userable' which goal is to rent the place for the user -
payForRent
The method implemented from the interface 'Userable' which goal is to provide a payment for the rent- Specified by:
payForRent
in interfaceUserable
- Parameters:
currentRent
- - receives a created rent where user becomes provided with the ability to pay for the rent
-
cancelRent
The method implemented from the interface 'Userable' which goal is to cancel user's existing rent- Specified by:
cancelRent
in interfaceUserable
- Parameters:
currentRent
- - receives an existing user's rent which has been recently created
-
editRent
-
getName
-
setName
The setter for the user's name- Parameters:
name
- - the name of the user
-
getSurname
-
setSurname
The setter method for user's surname- Parameters:
surname
- - The user's surname
-
getPhoneNumber
The getter method for user's phone number- Returns:
- the User's phone number
-
setPhoneNumber
The setter method for user's phone number- Parameters:
phoneNumber
- - the user's phone number
-
getEmail
-
setEmail
The setter method for user's email
-