From 0c1784f6cccffb93af1186107d29a280f413edd6 Mon Sep 17 00:00:00 2001 From: HLeiTR Date: Mon, 14 Nov 2022 22:46:28 -0500 Subject: [PATCH] [*] Modified the code by a bit so that it now includes Split Bill ID --- src/main/java/billgates/database/QueryEntryData.java | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/main/java/billgates/database/QueryEntryData.java b/src/main/java/billgates/database/QueryEntryData.java index 348f0b5..d9c3cf2 100644 --- a/src/main/java/billgates/database/QueryEntryData.java +++ b/src/main/java/billgates/database/QueryEntryData.java @@ -13,6 +13,7 @@ public class QueryEntryData { private String from = ""; private String to = ""; private String location = ""; + private int splitBillId = -1; public QueryEntryData(int id, ZonedDateTime date, @@ -21,7 +22,8 @@ public QueryEntryData(int id, String description, String from, String to, - String location) { + String location, + int splitBillId) { this.id = id; this.date = date; this.value = value; @@ -30,6 +32,7 @@ public QueryEntryData(int id, this.from = from; this.to = to; this.location = location; + this.splitBillId = splitBillId; } public QueryEntryData(int id, @@ -53,9 +56,7 @@ public EntryBuilder toEntryBuilder() { .setLocation(this.location); } - public int getId() { - return id; - } + public int getId() { return id; } public ZonedDateTime getDate() { return date; @@ -84,6 +85,9 @@ public String getTo() { public String getLocation() { return location; } + public int getSplitBillId() { + return splitBillId; + } @Override public boolean equals(Object obj) {