aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDiederick de Vries <diederick@diederickdevries.net>2019-08-02 15:02:26 +0200
committerDiederick de Vries <diederick@diederickdevries.net>2019-08-02 15:02:26 +0200
commit6c63d3d6e023246ebb52aa1276d6f3336e700951 (patch)
tree09b14e974c2b670d5562d1331b3ec7eb34961b95
parent7b2411f1e38a0a62f0e6f62f70fe1e42f05f678b (diff)
downloadboodschapi-6c63d3d6e023246ebb52aa1276d6f3336e700951.tar.gz
boodschapi-6c63d3d6e023246ebb52aa1276d6f3336e700951.tar.bz2
boodschapi-6c63d3d6e023246ebb52aa1276d6f3336e700951.zip
doc: add javadoc
-rw-r--r--src/main/java/net/diederickdevries/boodschapi/model/Item.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/main/java/net/diederickdevries/boodschapi/model/Item.java b/src/main/java/net/diederickdevries/boodschapi/model/Item.java
index d267085..c920646 100644
--- a/src/main/java/net/diederickdevries/boodschapi/model/Item.java
+++ b/src/main/java/net/diederickdevries/boodschapi/model/Item.java
@@ -125,6 +125,11 @@ public class Item implements Serializable
125 this.week = week.toString(); 125 this.week = week.toString();
126 } 126 }
127 127
128 /**
129 * Returns true when the item is bought, or false if not.
130 *
131 * @return
132 */
128 public boolean isBought() 133 public boolean isBought()
129 { 134 {
130 return this.bought != null; 135 return this.bought != null;
@@ -135,6 +140,11 @@ public class Item implements Serializable
135 return bought; 140 return bought;
136 } 141 }
137 142
143 /**
144 * Sets the unix time when the item was bought. Set to null to make it not bought.
145 *
146 * @param bought
147 */
138 public void setBought(Long bought) 148 public void setBought(Long bought)
139 { 149 {
140 this.bought = bought; 150 this.bought = bought;