aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDiederick de Vries <diederick@diederickdevries.net>2018-09-17 16:17:56 +0200
committerDiederick de Vries <diederick@diederickdevries.net>2018-09-17 16:17:56 +0200
commit338295434a271dadeffb303bf13a5bdbe95f960e (patch)
treec06df06510f10d35effd8aa2e67ef123508f74d7
parent1fb4470fdc0bc6ffe17886643f980a0a65dd7dc7 (diff)
downloadboodschapi-338295434a271dadeffb303bf13a5bdbe95f960e.tar.gz
boodschapi-338295434a271dadeffb303bf13a5bdbe95f960e.tar.bz2
boodschapi-338295434a271dadeffb303bf13a5bdbe95f960e.zip
Expand toString()
-rw-r--r--src/main/java/net/diederickdevries/boodschapi/model/Grocery.java9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/main/java/net/diederickdevries/boodschapi/model/Grocery.java b/src/main/java/net/diederickdevries/boodschapi/model/Grocery.java
index 9ad8a70..472acef 100644
--- a/src/main/java/net/diederickdevries/boodschapi/model/Grocery.java
+++ b/src/main/java/net/diederickdevries/boodschapi/model/Grocery.java
@@ -219,6 +219,13 @@ public class Grocery implements Serializable
219 @Override 219 @Override
220 public String toString() 220 public String toString()
221 { 221 {
222 return "Grocery [ id=" + id + " ] name = " + name; 222 return "Grocery[ id=" + id + " ]"
223 + "bought = " + this.getBought()
224 + ", category = " + (null != this.category ? this.category.getName(): "null")
225 + ", name = " + this.getName()
226 + ", shop = " + (null != this.shop ? this.shop.getName() : "null")
227 + ", show = " + this.getShop()
228 + ", showAlways = " + this.getShowAlways()
229 + ", unit = " + this.getUnit();
223 } 230 }
224} 231}