Uses of Class
com.university.bookstore.model.Book
Packages that use Book
Package
Description
-
Uses of Book in com.university.bookstore.api
Methods in com.university.bookstore.api that return BookModifier and TypeMethodDescriptionBookstoreAPI.findByIsbn(String isbn) Finds a book by its ISBN.BookstoreAPI.getMostExpensive()Finds the most expensive book in the inventory.BookstoreAPI.getMostRecent()Finds the most recently published book.Book[]BookstoreAPI.snapshotArray()Creates a defensive copy of the inventory as an array.Methods in com.university.bookstore.api that return types with arguments of type BookModifier and TypeMethodDescriptionBookstoreAPI.findByAuthor(String authorQuery) Searches for books by author (case-insensitive, partial match).BookstoreAPI.findByPriceRange(double minPrice, double maxPrice) Finds all books within a price range (inclusive).BookstoreAPI.findByTitle(String titleQuery) Searches for books by title (case-insensitive, partial match).BookstoreAPI.findByYear(int year) Finds all books published in a specific year.BookstoreAPI.getAllBooks()Gets all books in the inventory.Methods in com.university.bookstore.api with parameters of type Book -
Uses of Book in com.university.bookstore.impl
Methods in com.university.bookstore.impl that return BookModifier and TypeMethodDescriptionBookstoreArrayList.findByIsbn(String isbn) BookstoreArrayList.getMostExpensive()BookstoreArrayList.getMostRecent()Book[]BookstoreArrayList.snapshotArray()Methods in com.university.bookstore.impl that return types with arguments of type BookModifier and TypeMethodDescriptionBookstoreArrayList.findByAuthor(String authorQuery) BookstoreArrayList.findByPriceRange(double minPrice, double maxPrice) BookstoreArrayList.findByTitle(String titleQuery) BookstoreArrayList.findByYear(int year) BookstoreArrayList.getAllBooks()Methods in com.university.bookstore.impl with parameters of type BookConstructor parameters in com.university.bookstore.impl with type arguments of type BookModifierConstructorDescriptionBookstoreArrayList(Collection<Book> initialBooks) Creates a bookstore with initial books. -
Uses of Book in com.university.bookstore.model
Classes in com.university.bookstore.model that implement interfaces with type arguments of type BookModifier and TypeClassDescriptionfinal classRepresents an immutable book in the bookstore inventory.Methods in com.university.bookstore.model with parameters of type Book -
Uses of Book in com.university.bookstore.utils
Methods in com.university.bookstore.utils that return BookModifier and TypeMethodDescriptionstatic Book[]BookArrayUtils.filterByDecade(Book[] books, int decade) Filters books published in a specific decade.static Book[]BookArrayUtils.filterByYearRange(Book[] books, int startYear, int endYear) Finds books within a year range (inclusive).static Book[]BookArrayUtils.filterPriceAtMost(Book[] books, double maxPrice) Filters books with price at most the specified maximum.static BookBookArrayUtils.findLongestTitle(Book[] books) Finds the book with the longest title.static BookBookArrayUtils.findOldest(Book[] books) Finds the oldest book (earliest publication year).static Book[]Merges two book arrays into one, preserving all elements.static Book[]BookArrayUtils.removeDuplicates(Book[] books) Removes duplicate books based on ISBN.Methods in com.university.bookstore.utils with parameters of type BookModifier and TypeMethodDescriptionstatic doubleBookArrayUtils.averagePrice(Book[] books) Calculates the average price of books in the array.static intBookArrayUtils.countBeforeYear(Book[] books, int yearCutoff) Counts books published before a given year.static intBookArrayUtils.countByAuthor(Book[] books, String author) Counts books by a specific author (case-insensitive, exact match).BookArrayUtils.countByDecade(Book[] books) Groups books by decade and returns a summary.static Book[]BookArrayUtils.filterByDecade(Book[] books, int decade) Filters books published in a specific decade.static Book[]BookArrayUtils.filterByYearRange(Book[] books, int startYear, int endYear) Finds books within a year range (inclusive).static Book[]BookArrayUtils.filterPriceAtMost(Book[] books, double maxPrice) Filters books with price at most the specified maximum.static BookBookArrayUtils.findLongestTitle(Book[] books) Finds the book with the longest title.static BookBookArrayUtils.findOldest(Book[] books) Finds the oldest book (earliest publication year).static Book[]Merges two book arrays into one, preserving all elements.static Book[]BookArrayUtils.removeDuplicates(Book[] books) Removes duplicate books based on ISBN.static voidBookArrayUtils.sortByPrice(Book[] books) Sorts books by price in ascending order (in-place).static voidBookArrayUtils.sortByYear(Book[] books) Sorts books by year in ascending order (in-place).