フォーマット

This commit is contained in:
nero 2024-01-12 09:56:51 +09:00
parent 63009b1a9a
commit 84b9de17cf
2 changed files with 21 additions and 19 deletions

View File

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