空のコンストラクタを追加, コメントを追加

This commit is contained in:
ろむねこ 2024-01-12 10:50:19 +09:00
parent db4da7812b
commit 7107b03de9
No known key found for this signature in database
GPG Key ID: FA1F39A1BA37D168

View File

@ -8,12 +8,20 @@ public class LibraryItemPage {
String pageId;
ArrayList<ListItem> listItems;
// Constructor
public LibraryItemPage(String pageTitle, String pageId, ArrayList<ListItem> listItems) {
this.pageTitle = pageTitle;
this.pageId = pageId;
this.listItems = listItems;
}
public LibraryItemPage() {
// Empty constructor
}
// Getter
public String getPageTitle() {
return pageTitle;
}
@ -26,6 +34,8 @@ public class LibraryItemPage {
return listItems;
}
// Setter
public void setPageTitle(String pageTitle) {
this.pageTitle = pageTitle;
}