Interface Rentable
- All Superinterfaces:
StatusHaveable
- All Known Implementing Classes:
Booking
The interface which defines the logic of the place which can be rented by the client
-
Method Summary
Modifier and TypeMethodDescriptionThe method which allows to get the instance of the renterThe method which allows to get the instance of rent placedouble
The method which allows to get the price for the rentThe method which allows to get the value of current renting statusvoid
setPrice
(double price) The method which allows to set the price for the rentvoid
The method which allows to set the renter which is renting the defined placevoid
setRentPlace
(Liveable place) The method which allows to set the rent place which can be rented by the uservoid
The method which allows to set the status of the renting
-
Method Details
-
setRentPlace
The method which allows to set the rent place which can be rented by the user- Parameters:
place
- - the place which can be rented by the user
-
setRenter
The method which allows to set the renter which is renting the defined place- Parameters:
renter
- - a user or a client who rents the defined place
-
setPrice
void setPrice(double price) The method which allows to set the price for the rent- Parameters:
price
- - a double value which defines the price for the rent
-
setStatus
The method which allows to set the status of the renting- Specified by:
setStatus
in interfaceStatusHaveable
- Parameters:
stringLabel
- - a value which defines the current status of the renting
-
getRentPlace
Liveable getRentPlace()The method which allows to get the instance of rent place- Returns:
- Liveable rent place
-
getRentPrice
double getRentPrice()The method which allows to get the price for the rent- Returns:
- price for the rent
-
getRenter
Userable getRenter()The method which allows to get the instance of the renter- Returns:
- Userable renter of the specific place
-
getStatus
Status getStatus()The method which allows to get the value of current renting status- Specified by:
getStatus
in interfaceStatusHaveable
- Returns:
- Status of the current renting
-