Catalogue class The Catalogue class must have the following attribute and methods. You are allowed to include additional methods and attributes within the class as needed.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

Can someone assist in with answering this question please?

Catalogue class
The Catalogue class must have the following attribute and methods. You are allowed to include
additional methods and attributes within the class as needed.
Attribute
Туре
Purpose
A private collection for storing Book objects. You
are free to instantiate this using an appropriate Java
collection subclass
bookList
Collection<Book>
Method Signature
Return Type
Purpose
Catalogue( Book [ ] books)
Constructor. Accepts an array of Book objects and
uses this to fill the bookList collection
Returns the book list sorted by book title
alphabetically (A-Z)
getBookListByTitle( )
Collection<Book>
Returns the book list sorted by rating (highest to
lowest)
getBookListByRating()
Collection<Book>
getBookListByAuthor( String
authorName)
Returns a list of books authored by a particular
person, sorted by book title alphabetically (A-Z)
Collection<Book>
Transcribed Image Text:Catalogue class The Catalogue class must have the following attribute and methods. You are allowed to include additional methods and attributes within the class as needed. Attribute Туре Purpose A private collection for storing Book objects. You are free to instantiate this using an appropriate Java collection subclass bookList Collection<Book> Method Signature Return Type Purpose Catalogue( Book [ ] books) Constructor. Accepts an array of Book objects and uses this to fill the bookList collection Returns the book list sorted by book title alphabetically (A-Z) getBookListByTitle( ) Collection<Book> Returns the book list sorted by rating (highest to lowest) getBookListByRating() Collection<Book> getBookListByAuthor( String authorName) Returns a list of books authored by a particular person, sorted by book title alphabetically (A-Z) Collection<Book>
Returns the book list sorted by number of pages
(least to most)
getBookListByLength()
Collection<Book>
Returns the book list sorted by ISBN (ascending
order)
getBookListBylSBN()
Collection<Book>
Invokes getBookListByTitle( ) and returns a string of
the list of books using the string representation of
the Book class where the title appears first.
printBookListByTitle( )
String
Invokes getBookListByRating() and returns a string
of the list of books from that method using the
string representation of the Book class where the
rating appears first.
printBookListByRating()
String
printBookListByAuthor( String
authorName)
Invokes getBookListByAuthor( ) and returns a string
of the list of books using the string representation
of the Book class where the title appears first.
String
Invokes getBookListByLength( ) and returns a string
of the list of books using the string representation
of the Book class where the number of pages
printBookListByLength( )
String
appears first.
Invokes getBookListBylSBN() and returns a string
of the list of books using the string representation
of the Book class where the ISBN appears first.
printBookListBylSBN( )
String
Transcribed Image Text:Returns the book list sorted by number of pages (least to most) getBookListByLength() Collection<Book> Returns the book list sorted by ISBN (ascending order) getBookListBylSBN() Collection<Book> Invokes getBookListByTitle( ) and returns a string of the list of books using the string representation of the Book class where the title appears first. printBookListByTitle( ) String Invokes getBookListByRating() and returns a string of the list of books from that method using the string representation of the Book class where the rating appears first. printBookListByRating() String printBookListByAuthor( String authorName) Invokes getBookListByAuthor( ) and returns a string of the list of books using the string representation of the Book class where the title appears first. String Invokes getBookListByLength( ) and returns a string of the list of books using the string representation of the Book class where the number of pages printBookListByLength( ) String appears first. Invokes getBookListBylSBN() and returns a string of the list of books using the string representation of the Book class where the ISBN appears first. printBookListBylSBN( ) String
Expert Solution
steps

Step by step

Solved in 4 steps with 1 images

Blurred answer
Knowledge Booster
Research
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education