ListItemにisCombinedを追加

This commit is contained in:
r-ca 2024-01-28 13:46:03 +09:00
parent b9c1c521cf
commit b86843bd57
No known key found for this signature in database
GPG Key ID: 6A72911AC73464A9

View File

@ -10,6 +10,7 @@ public class ListItem {
String description;
ListItemType itemType;
String itemId;
boolean isCombined;
// Constructor
@ -20,6 +21,14 @@ public class ListItem {
this.itemId = itemId;
}
public ListItem(String title, String description, ListItemType itemType, String itemId, boolean isCombined) {
this.title = title;
this.description = description;
this.itemType = itemType;
this.itemId = itemId;
this.isCombined = isCombined;
}
public ListItem() {
// Empty constructor
}
@ -42,6 +51,10 @@ public class ListItem {
return itemId;
}
public boolean getIsCombined() {
return isCombined;
}
// Setter
public void setTitle(String title) {
@ -60,4 +73,8 @@ public class ListItem {
this.itemId = itemId;
}
public void setIsCombined(boolean isCombined) {
this.isCombined = isCombined;
}
}