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