Package crms.lib
Class CarReport
java.lang.Object
crms.lib.CarReport
Represents a report item for a
Car
.
This class contains information about a car and its availability status.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
CarReport
Constructs aCarReport
object with the specified car and availability status.- Parameters:
car
- theCar
associated with the reportisAvailable
-true
if the car is available,false
otherwise
-
-
Method Details
-
getCar
Gets theCar
object associated with this report.- Returns:
- the
Car
associated with the report
-
isAvailable
public boolean isAvailable()Gets the availability status of the car.- Returns:
true
if the car is available,false
otherwise
-
equals
Compares thisCarReport
to the specified object for equality.Two
CarReport
objects are considered equal if they have the sameCar
ID. -
hashCode
-