コメント追加

This commit is contained in:
nero 2023-12-22 12:41:55 +09:00
parent 751089a73a
commit 5cbf1f4553

View File

@ -8,7 +8,7 @@ import java.util.List;
import java.util.Map; import java.util.Map;
import one.nem.lacerta.model.document.DocumentMeta; import one.nem.lacerta.model.document.DocumentMeta;
//フォルダ管理機能
public class LibraryFolderFragment extends Fragment{ public class LibraryFolderFragment extends Fragment{
private Map<String, List<DocumentMeta>> folderMap; private Map<String, List<DocumentMeta>> folderMap;
@ -25,7 +25,7 @@ public class LibraryFolderFragment extends Fragment{
List<DocumentMeta> documents = folderMap.get(folderName); List<DocumentMeta> documents = folderMap.get(folderName);
documents.add(documentMeta); documents.add(documentMeta);
} }
//フォルダに関連するドキュメントを取得するためのメソッド
public List<DocumentMeta> getDocumentsInFolder(String folderName) { public List<DocumentMeta> getDocumentsInFolder(String folderName) {
return folderMap.getOrDefault(folderName, new ArrayList<>()); return folderMap.getOrDefault(folderName, new ArrayList<>());
} }