必要のないクラスと文の削除

This commit is contained in:
nero 2024-01-17 09:59:09 +09:00
parent 3f503e14a7
commit e7b2519de0
3 changed files with 0 additions and 26 deletions

View File

@ -1,4 +1,3 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4"> <project version="4">
<component name="ExternalStorageConfigurationManager" enabled="true" /> <component name="ExternalStorageConfigurationManager" enabled="true" />
<component name="ProjectRootManager" version="2" languageLevel="JDK_17" project-jdk-name="jbr-17" project-jdk-type="JavaSDK"> <component name="ProjectRootManager" version="2" languageLevel="JDK_17" project-jdk-name="jbr-17" project-jdk-type="JavaSDK">

View File

@ -1,6 +1,5 @@
package one.nem.lacerta.feature.library; package one.nem.lacerta.feature.library;
import static one.nem.lacerta.feature.library.LibraryUtils.convertToLibraryItems;
import android.os.Bundle; import android.os.Bundle;

View File

@ -1,24 +0,0 @@
package one.nem.lacerta.feature.library;
import java.util.ArrayList;
import java.util.List;
import one.nem.lacerta.model.ListItem;
import one.nem.lacerta.model.document.DocumentMeta;
// DocumentMeta クラスのリストを ListItem クラスのリストに変換するためのユーティリティクラスの一部
public class LibraryUtils {
public static ArrayList<ListItem> convertToLibraryItems(List<DocumentMeta> metas) {
ArrayList<ListItem> libraryItems = new ArrayList<>();
for (DocumentMeta meta : metas) {
ListItem listItem = new ListItem();
listItem.setTitle(meta.getTitle());
listItem.setDescription(meta.getId());
libraryItems.add(listItem);
}
return libraryItems;
}
}