mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-26 17:53:14 +00:00
必要のないクラスと文の削除
This commit is contained in:
parent
3f503e14a7
commit
e7b2519de0
|
@ -1,4 +1,3 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ExternalStorageConfigurationManager" enabled="true" />
|
||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_17" project-jdk-name="jbr-17" project-jdk-type="JavaSDK">
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
package one.nem.lacerta.feature.library;
|
||||
|
||||
import static one.nem.lacerta.feature.library.LibraryUtils.convertToLibraryItems;
|
||||
|
||||
import android.os.Bundle;
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user