Skip to content

Commit 957e8ac

Browse files
committed
Added reference for JSONArray.append()
1 parent c05adf1 commit 957e8ac

1 file changed

Lines changed: 13 additions & 5 deletions

File tree

core/src/processing/data/JSONArray.java

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -679,8 +679,8 @@ public boolean[] getBooleanArray() {
679679
* Append an String value. This increases the array's length by one.
680680
*
681681
* @webref jsonarray:method
682-
* @brief Appends a String value, increasing the array's length by one
683-
* @param value A String value.
682+
* @brief Appends a value, increasing the array's length by one
683+
* @param value a String value
684684
* @return this.
685685
*/
686686
public JSONArray append(String value) {
@@ -692,7 +692,7 @@ public JSONArray append(String value) {
692692
/**
693693
* Append an int value. This increases the array's length by one.
694694
*
695-
* @param value An int value.
695+
* @param value an int value
696696
* @return this.
697697
*/
698698
public JSONArray append(int value) {
@@ -704,6 +704,7 @@ public JSONArray append(int value) {
704704
/**
705705
* Append an long value. This increases the array's length by one.
706706
*
707+
* @nowebref
707708
* @param value A long value.
708709
* @return this.
709710
*/
@@ -717,7 +718,7 @@ public JSONArray append(long value) {
717718
* Append a float value. This increases the array's length by one.
718719
* This will store the value as a double, since there are no floats in JSON.
719720
*
720-
* @param value A float value.
721+
* @param value a float value
721722
* @throws JSONException if the value is not finite.
722723
* @return this.
723724
*/
@@ -729,6 +730,7 @@ public JSONArray append(float value) {
729730
/**
730731
* Append a double value. This increases the array's length by one.
731732
*
733+
* @nowebref
732734
* @param value A double value.
733735
* @throws JSONException if the value is not finite.
734736
* @return this.
@@ -744,7 +746,7 @@ public JSONArray append(double value) {
744746
/**
745747
* Append a boolean value. This increases the array's length by one.
746748
*
747-
* @param value A boolean value.
749+
* @param value a boolean value
748750
* @return this.
749751
*/
750752
public JSONArray append(boolean value) {
@@ -777,12 +779,18 @@ public JSONArray append(boolean value) {
777779
// }
778780

779781

782+
/**
783+
* @param value a JSONArray value
784+
*/
780785
public JSONArray append(JSONArray value) {
781786
myArrayList.add(value);
782787
return this;
783788
}
784789

785790

791+
/**
792+
* @param value a JSONObject value
793+
*/
786794
public JSONArray append(JSONObject value) {
787795
myArrayList.add(value);
788796
return this;

0 commit comments

Comments
 (0)