Interface Rentable

All Superinterfaces:
StatusHaveable
All Known Implementing Classes:
Booking

public interface Rentable extends StatusHaveable
The interface which defines the logic of the place which can be rented by the client
  • Method Summary

    Modifier and Type
    Method
    Description
    The method which allows to get the instance of the renter
    The method which allows to get the instance of rent place
    double
    The method which allows to get the price for the rent
    The method which allows to get the value of current renting status
    void
    setPrice(double price)
    The method which allows to set the price for the rent
    void
    The method which allows to set the renter which is renting the defined place
    void
    The method which allows to set the rent place which can be rented by the user
    void
    setStatus(String stringLabel)
    The method which allows to set the status of the renting
  • Method Details

    • setRentPlace

      void setRentPlace(Liveable place)
      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

      void setRenter(Userable renter)
      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

      void setStatus(String stringLabel)
      The method which allows to set the status of the renting
      Specified by:
      setStatus in interface StatusHaveable
      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 interface StatusHaveable
      Returns:
      Status of the current renting