public class SimpleLibraryService extends Object implements LibraryService
| Constructor and Description |
|---|
SimpleLibraryService() |
| Modifier and Type | Method and Description |
|---|---|
void |
createAuthor(Author author) |
void |
fillLibrary() |
List<Book> |
findBooksByAuthor(String lastName) |
List<Book> |
findBooksByTitle(String title) |
long |
getNumAuthors() |
long |
getNumBooks() |
public void fillLibrary()
fillLibrary in interface LibraryServicepublic List<Book> findBooksByAuthor(String lastName)
findBooksByAuthor in interface LibraryServicepublic List<Book> findBooksByTitle(String title)
findBooksByTitle in interface LibraryServicepublic long getNumBooks()
getNumBooks in interface LibraryServicepublic long getNumAuthors()
getNumAuthors in interface LibraryServicepublic void createAuthor(Author author)
createAuthor in interface LibraryServiceCopyright © 2014. All rights reserved.