Skip to content

Instantly share code, notes, and snippets.

@JorgeCastilloPrz
Last active August 29, 2015 14:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JorgeCastilloPrz/a13f129743fd7a4d6b60 to your computer and use it in GitHub Desktop.
Save JorgeCastilloPrz/a13f129743fd7a4d6b60 to your computer and use it in GitHub Desktop.
Medium - Dependency injection - 1
public interface BookRepository {
public List<Book> getAllBooks();
public List<Book> getAllBooksFromUser(int userId);
public List<Book> getAllBooksByCategory(BookCategory category);
public Book getBook(int bookId);
public Book getBookByName(String bookName);
public void removeBook(int bookId);
public void markAsCompleted(int bookId);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment