Class Book
java.lang.Object
cmpt213.assignment4.packagedeliveries.client.model.PackageBase
cmpt213.assignment4.packagedeliveries.client.model.Book
- All Implemented Interfaces:
Package,Comparable<PackageBase>
A concrete implementation
PackageBase, models a package that
holds a book. Contains extra field that is a String, acts as the author name.-
Field Summary
Fields inherited from class cmpt213.assignment4.packagedeliveries.client.model.PackageBase
dateFormat, expectedDeliveryDate, isDelivered, name, notes, price, weight -
Constructor Summary
ConstructorsConstructorDescriptionBook(String name, String notes, double price, double weight, LocalDateTime date, String authorName) Constructor of the Book object. -
Method Summary
Modifier and TypeMethodDescriptionGetter for the author name.toString()Converts object's fields into a String that conveys what the fields are (units are included).Methods inherited from class cmpt213.assignment4.packagedeliveries.client.model.PackageBase
compareTo, getExpectedDeliveryDate, getName, getNotes, getPrice, getWeight, isDelivered, setDeliveryStatus
-
Constructor Details
-
Book
public Book(String name, String notes, double price, double weight, LocalDateTime date, String authorName) Constructor of the Book object.- Parameters:
name- SeePackageBase(String, String, double, double, LocalDateTime)notes- SeePackageBase(String, String, double, double, LocalDateTime)price- SeePackageBase(String, String, double, double, LocalDateTime)weight- SeePackageBase(String, String, double, double, LocalDateTime)date- SeePackageBase(String, String, double, double, LocalDateTime)authorName- Holds the author name of the Book package.
-
-
Method Details