Interface BookInventory

All Known Implementing Classes:
BookDatabase

public interface BookInventory
The functionality required for an inventory of books
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    add(Book... books)
    Adds some books to the inventory
    Returns all of the books in this inventory
    int
    Returns the number of copies of the given book in the inventory
    void
    remove(Book book)
    Removes a book from the inventory
  • Method Details

    • remove

      void remove(Book book)
      Removes a book from the inventory
      Parameters:
      book - The book to remove
    • add

      void add(Book... books)
      Adds some books to the inventory
      Parameters:
      books - A bunch of bookx
    • getCopies

      int getCopies(Book book)
      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