Package edu.pdx.cs410J.di
Interface BookInventory
- All Known Implementing Classes:
BookDatabase
public interface BookInventory
The functionality required for an inventory of books
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds some books to the inventorygetBooks()
Returns all of the books in this inventoryint
Returns the number of copies of the given book in the inventoryvoid
Removes a book from the inventory
-
Method Details
-
remove
Removes a book from the inventory- Parameters:
book
- The book to remove
-
add
Adds some books to the inventory- Parameters:
books
- A bunch of bookx
-
getCopies
Returns the number of copies of the given book in the inventory- Parameters:
book
- The book of interest- Returns:
- the number of copies of
book
-
getBooks
Returns all of the books in this inventory- Returns:
- all of the books in this inventory
-