Uses of Class
crms.lib.Car
Packages that use Car
-
Uses of Car in crms.lib
Modifier and TypeMethodDescriptionCreates aCar
object with specified brand, model, description, and price.CarReport.getCar()
Gets theCar
object associated with this report.Rental.getCar()
Gets the car being rented.CarDatabase.getItemById
(String id) Retrieves aCar
object using the given ID.Modifier and TypeMethodDescriptionboolean
RentalManager.isCarAvailable
(Car car, LocalDate startDate, LocalDate endDate) Checks if the specified car is available for rental during the given dates.boolean
CarManager.isCarAvailableNow
(Car car) Checks if the specified car is currently available for rental.boolean
RentalManager.isCarAvailableNow
(Car car) Checks if the specified car is currently available for rental.boolean
Adds aCar
to the inventory if its ID is unique.boolean
CarManager.tryRemoveCar
(Car car) Removes aCar
from the inventory based on its unique ID.boolean
RentalManager.tryRentCar
(Car car, LocalDate startDate, LocalDate endDate) Attempts to rent a car for the specified period.ModifierConstructorDescriptionConstructs aCarReport
object with the specified car and availability status.Creates a new Rental object with the specified properties.ModifierConstructorDescriptionCarFactory
(Database<Car> carDatabase) Constructs aCarFactory
object.CarManager
(Database<Car> carDatabase, Database<Rental> rentalDatabase) Constructs aCarManager
with the specified car and rental databases.