Merge pull request #59 from lacerta-doc/data/add_search_stub

JavaDoc対応
This commit is contained in:
ろむねこ 2024-01-13 15:18:32 +09:00 committed by GitHub
commit f09d35b8c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,6 +22,12 @@ public class LacertaSearchStubImpl implements LacertaSearch {
this.logger = logger; this.logger = logger;
} }
/**
* 検索
* @param query 検索クエリ
* @param limit 最大取得件数
* @return 検索結果
*/
@Override @Override
public ArrayList<ListItem> autoSearch(String query, int limit) { public ArrayList<ListItem> autoSearch(String query, int limit) {
logger.debug("SearchStub", "autoSearch"); logger.debug("SearchStub", "autoSearch");
@ -29,6 +35,13 @@ public class LacertaSearchStubImpl implements LacertaSearch {
return library.getLibraryPage(limit).getListItems(); return library.getLibraryPage(limit).getListItems();
} }
/**
* 検索
* @param query 検索クエリ
* @param limit 最大取得件数
* @param offset オフセット
* @return 検索結果
*/
@Override @Override
public ArrayList<ListItem> autoSearch(String query, int limit, int offset) { public ArrayList<ListItem> autoSearch(String query, int limit, int offset) {
logger.debug("SearchStub", "autoSearch"); logger.debug("SearchStub", "autoSearch");