All Downloads are FREE. Search and download functionalities are using the official Maven repository.

edu.pdx.cs.joy.di.BookInventory Maven / Gradle / Ivy

The newest version!
package edu.pdx.cs.joy.di;

import java.util.Set;

/**
 * The functionality required for an inventory of books
 */
public interface BookInventory
{
    /**
     * Removes a book from the inventory
     * @param book The book to remove
     */
    void remove( Book book );

    /**
     * Adds some books to the inventory
     * @param books
     *        A bunch of bookx
     */
    void add(Book... books);

    /**
     * Returns the number of copies of the given book in the inventory
     * @param book
     *        The book of interest
     * @return the number of copies of book
     */
    int getCopies( Book book );

    /**
     * Returns all of the books in this inventory
     * @return all of the books in this inventory
     */
    Set getBooks();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy