@@ -129,16 +129,36 @@ public B remove(String name) {
129129 return self ();
130130 }
131131
132+ /**
133+ * Sets a property.
134+ *
135+ * @param name name of the property
136+ * @param value value associated with the property
137+ */
132138 public B set (String name , Value <?> value ) {
133139 properties .put (name , value );
134140 return self ();
135141 }
136142
143+ /**
144+ * Sets a property of type {@link StringValue}.
145+ *
146+ * @param name name of the property
147+ * @param value value associated with the property
148+ */
137149 public B set (String name , String value ) {
138150 properties .put (name , of (value ));
139151 return self ();
140152 }
141153
154+ /**
155+ * Sets a list property containing elements of type {@link StringValue}.
156+ *
157+ * @param name name of the property
158+ * @param first the first string in the list
159+ * @param second the second string in the list
160+ * @param others other strings in the list
161+ */
142162 public B set (String name , String first , String second , String ... others ) {
143163 List <StringValue > values = new LinkedList <>();
144164 values .add (of (first ));
@@ -150,11 +170,25 @@ public B set(String name, String first, String second, String... others) {
150170 return self ();
151171 }
152172
173+ /**
174+ * Sets a property of type {@link LongValue}.
175+ *
176+ * @param name name of the property
177+ * @param value value associated with the property
178+ */
153179 public B set (String name , long value ) {
154180 properties .put (name , of (value ));
155181 return self ();
156182 }
157183
184+ /**
185+ * Sets a list property containing elements of type {@link LongValue}.
186+ *
187+ * @param name name of the property
188+ * @param first the first long in the list
189+ * @param second the second long in the list
190+ * @param others other longs in the list
191+ */
158192 public B set (String name , long first , long second , long ... others ) {
159193 List <LongValue > values = new LinkedList <>();
160194 values .add (of (first ));
@@ -166,11 +200,25 @@ public B set(String name, long first, long second, long... others) {
166200 return self ();
167201 }
168202
203+ /**
204+ * Sets a property of type {@link DoubleValue}.
205+ *
206+ * @param name name of the property
207+ * @param value value associated with the property
208+ */
169209 public B set (String name , double value ) {
170210 properties .put (name , of (value ));
171211 return self ();
172212 }
173213
214+ /**
215+ * Sets a list property containing elements of type {@link DoubleValue}.
216+ *
217+ * @param name name of the property
218+ * @param first the first double in the list
219+ * @param second the second double in the list
220+ * @param others other doubles in the list
221+ */
174222 public B set (String name , double first , double second , double ... others ) {
175223 List <DoubleValue > values = new LinkedList <>();
176224 values .add (of (first ));
@@ -182,11 +230,25 @@ public B set(String name, double first, double second, double... others) {
182230 return self ();
183231 }
184232
233+ /**
234+ * Sets a property of type {@link BooleanValue}.
235+ *
236+ * @param name name of the property
237+ * @param value value associated with the property
238+ */
185239 public B set (String name , boolean value ) {
186240 properties .put (name , of (value ));
187241 return self ();
188242 }
189243
244+ /**
245+ * Sets a list property containing elements of type {@link BooleanValue}.
246+ *
247+ * @param name name of the property
248+ * @param first the first boolean in the list
249+ * @param second the second boolean in the list
250+ * @param others other booleans in the list
251+ */
190252 public B set (String name , boolean first , boolean second , boolean ... others ) {
191253 List <BooleanValue > values = new LinkedList <>();
192254 values .add (of (first ));
@@ -198,11 +260,25 @@ public B set(String name, boolean first, boolean second, boolean... others) {
198260 return self ();
199261 }
200262
263+ /**
264+ * Sets a property of type {@link DateTimeValue}.
265+ *
266+ * @param name name of the property
267+ * @param value value associated with the property
268+ */
201269 public B set (String name , DateTime value ) {
202270 properties .put (name , of (value ));
203271 return self ();
204272 }
205273
274+ /**
275+ * Sets a list property containing elements of type {@link DateTimeValue}.
276+ *
277+ * @param name name of the property
278+ * @param first the first {@link DateTime} in the list
279+ * @param second the second {@link DateTime} in the list
280+ * @param others other {@link DateTime}s in the list
281+ */
206282 public B set (String name , DateTime first , DateTime second , DateTime ... others ) {
207283 List <DateTimeValue > values = new LinkedList <>();
208284 values .add (of (first ));
@@ -214,11 +290,25 @@ public B set(String name, DateTime first, DateTime second, DateTime... others) {
214290 return self ();
215291 }
216292
293+ /**
294+ * Sets a property of type {@link KeyValue}.
295+ *
296+ * @param name name of the property
297+ * @param value value associated with the property
298+ */
217299 public B set (String name , Key value ) {
218300 properties .put (name , of (value ));
219301 return self ();
220302 }
221303
304+ /**
305+ * Sets a list property containing elements of type {@link KeyValue}.
306+ *
307+ * @param name name of the property
308+ * @param first the first {@link Key} in the list
309+ * @param second the second {@link Key} in the list
310+ * @param others other {@link Key}s in the list
311+ */
222312 public B set (String name , Key first , Key second , Key ... others ) {
223313 List <KeyValue > values = new LinkedList <>();
224314 values .add (of (first ));
@@ -230,11 +320,25 @@ public B set(String name, Key first, Key second, Key... others) {
230320 return self ();
231321 }
232322
323+ /**
324+ * Sets a property of type {@link EntityValue}.
325+ *
326+ * @param name name of the property
327+ * @param value value associated with the property
328+ */
233329 public B set (String name , FullEntity <?> value ) {
234330 properties .put (name , of (value ));
235331 return self ();
236332 }
237333
334+ /**
335+ * Sets a list property containing elements of type {@link EntityValue}.
336+ *
337+ * @param name name of the property
338+ * @param first the first {@link FullEntity} in the list
339+ * @param second the second {@link FullEntity} in the list
340+ * @param others other entities in the list
341+ */
238342 public B set (String name , FullEntity <?> first , FullEntity <?> second , FullEntity <?>... others ) {
239343 List <EntityValue > values = new LinkedList <>();
240344 values .add (of (first ));
@@ -246,21 +350,49 @@ public B set(String name, FullEntity<?> first, FullEntity<?> second, FullEntity<
246350 return self ();
247351 }
248352
353+ /**
354+ * Sets a property of type {@link ListValue}.
355+ *
356+ * @param name name of the property
357+ * @param values list of values associated with the property
358+ */
249359 public B set (String name , List <? extends Value <?>> values ) {
250360 properties .put (name , of (values ));
251361 return self ();
252362 }
253363
254- public B set (String name , Value <?> first , Value <?> second , Value <?>... other ) {
255- properties .put (name , of (first , second , other ));
364+ /**
365+ * Sets a property of type {@link ListValue}.
366+ *
367+ * @param name name of the property
368+ * @param first the first value in the list
369+ * @param second the second value in the list
370+ * @param others other values in the list
371+ */
372+ public B set (String name , Value <?> first , Value <?> second , Value <?>... others ) {
373+ properties .put (name , of (first , second , others ));
256374 return self ();
257375 }
258376
377+ /**
378+ * Sets a property of type {@link BlobValue}.
379+ *
380+ * @param name name of the property
381+ * @param value value associated with the property
382+ */
259383 public B set (String name , Blob value ) {
260384 properties .put (name , of (value ));
261385 return self ();
262386 }
263387
388+ /**
389+ * Sets a list property containing elements of type {@link BlobValue}.
390+ *
391+ * @param name name of the property
392+ * @param first the first {@link Blob} in the list
393+ * @param second the second {@link Blob} in the list
394+ * @param others other {@link Blob}s in the list
395+ */
264396 public B set (String name , Blob first , Blob second , Blob ... others ) {
265397 List <BlobValue > values = new LinkedList <>();
266398 values .add (of (first ));
@@ -272,6 +404,11 @@ public B set(String name, Blob first, Blob second, Blob... others) {
272404 return self ();
273405 }
274406
407+ /**
408+ * Sets a property of type {@code NullValue}.
409+ *
410+ * @param name name of the property
411+ */
275412 public B setNull (String name ) {
276413 properties .put (name , of ());
277414 return self ();
0 commit comments