/** * Appends the JSON representation of the specified <code>long</code> value to the end of this * array. * * @param value * the value to add to the array * @return the array itself, to enable method chaining */ public JsonArray add(long value) { values.add(valueOf(value)); return this; }
/** * Appends the JSON representation of the specified <code>double</code> value to the end of this * array. * * @param value * the value to add to the array * @return the array itself, to enable method chaining */ public JsonArray add(double value) { values.add(valueOf(value)); return this; }
/** * Appends the JSON representation of the specified string to the end of this array. * * @param value * the string to add to the array * @return the array itself, to enable method chaining */ public JsonArray add(String value) { values.add(valueOf(value)); return this; }
/** * Appends the JSON representation of the specified <code>double</code> value to the end of this * array. * * @param value * the value to add to the array * @return the array itself, to enable method chaining */ public JsonArray add(double value) { values.add(valueOf(value)); return this; }
/** * Appends the JSON representation of the specified <code>boolean</code> value to the end of this * array. * * @param value * the value to add to the array * @return the array itself, to enable method chaining */ public JsonArray add(boolean value) { values.add(valueOf(value)); return this; }
/** * Appends the JSON representation of the specified <code>int</code> value to the end of this * array. * * @param value * the value to add to the array * @return the array itself, to enable method chaining */ public JsonArray add(int value) { values.add(valueOf(value)); return this; }
/** * Appends the JSON representation of the specified <code>boolean</code> value to the end of this * array. * * @param value * the value to add to the array * @return the array itself, to enable method chaining */ public JsonArray add(boolean value) { values.add(valueOf(value)); return this; }
/** * Appends the JSON representation of the specified <code>float</code> value to the end of this * array. * * @param value * the value to add to the array * @return the array itself, to enable method chaining */ public JsonArray add(float value) { values.add(valueOf(value)); return this; }
/** * Appends the JSON representation of the specified <code>int</code> value to the end of this * array. * * @param value * the value to add to the array * @return the array itself, to enable method chaining */ public JsonArray add(int value) { values.add(valueOf(value)); return this; }
/** * Appends the JSON representation of the specified <code>float</code> value to the end of this * array. * * @param value * the value to add to the array * @return the array itself, to enable method chaining */ public JsonArray add(float value) { values.add(valueOf(value)); return this; }
/** * Appends the JSON representation of the specified <code>long</code> value to the end of this * array. * * @param value * the value to add to the array * @return the array itself, to enable method chaining */ public JsonArray add(long value) { values.add(valueOf(value)); return this; }
/** * Appends the JSON representation of the specified string to the end of this array. * * @param value * the string to add to the array * @return the array itself, to enable method chaining */ public JsonArray add(String value) { values.add(valueOf(value)); return this; }
/** * Replaces the element at the specified position in this array with the JSON representation of * the specified <code>float</code> value. * * @param index * the index of the array element to replace * @param value * the value to be stored at the specified array position * @return the array itself, to enable method chaining * @throws IndexOutOfBoundsException * if the index is out of range, i.e. <code>index < 0</code> or * <code>index >= size</code> */ public JsonArray set(int index, float value) { values.set(index, valueOf(value)); return this; }
/** * Replaces the element at the specified position in this array with the JSON representation of * the specified <code>boolean</code> value. * * @param index * the index of the array element to replace * @param value * the value to be stored at the specified array position * @return the array itself, to enable method chaining * @throws IndexOutOfBoundsException * if the index is out of range, i.e. <code>index < 0</code> or * <code>index >= size</code> */ public JsonArray set(int index, boolean value) { values.set(index, valueOf(value)); return this; }
/** * Replaces the element at the specified position in this array with the JSON representation of * the specified <code>int</code> value. * * @param index * the index of the array element to replace * @param value * the value to be stored at the specified array position * @return the array itself, to enable method chaining * @throws IndexOutOfBoundsException * if the index is out of range, i.e. <code>index < 0</code> or * <code>index >= size</code> */ public JsonArray set(int index, int value) { values.set(index, valueOf(value)); return this; }
/** * Replaces the element at the specified position in this array with the JSON representation of * the specified string. * * @param index * the index of the array element to replace * @param value * the string to be stored at the specified array position * @return the array itself, to enable method chaining * @throws IndexOutOfBoundsException * if the index is out of range, i.e. <code>index < 0</code> or * <code>index >= size</code> */ public JsonArray set(int index, String value) { values.set(index, valueOf(value)); return this; }
/** * Replaces the element at the specified position in this array with the JSON representation of * the specified <code>long</code> value. * * @param index * the index of the array element to replace * @param value * the value to be stored at the specified array position * @return the array itself, to enable method chaining * @throws IndexOutOfBoundsException * if the index is out of range, i.e. <code>index < 0</code> or * <code>index >= size</code> */ public JsonArray set(int index, long value) { values.set(index, valueOf(value)); return this; }
/** * Replaces the element at the specified position in this array with the JSON representation of * the specified <code>double</code> value. * * @param index * the index of the array element to replace * @param value * the value to be stored at the specified array position * @return the array itself, to enable method chaining * @throws IndexOutOfBoundsException * if the index is out of range, i.e. <code>index < 0</code> or * <code>index >= size</code> */ public JsonArray set(int index, double value) { values.set(index, valueOf(value)); return this; }
/** * Replaces the element at the specified position in this array with the JSON representation of * the specified <code>long</code> value. * * @param index * the index of the array element to replace * @param value * the value to be stored at the specified array position * @return the array itself, to enable method chaining * @throws IndexOutOfBoundsException * if the index is out of range, i.e. <code>index < 0</code> or * <code>index >= size</code> */ public JsonArray set(int index, long value) { values.set(index, valueOf(value)); return this; }
/** * Replaces the element at the specified position in this array with the JSON representation of * the specified <code>boolean</code> value. * * @param index * the index of the array element to replace * @param value * the value to be stored at the specified array position * @return the array itself, to enable method chaining * @throws IndexOutOfBoundsException * if the index is out of range, i.e. <code>index < 0</code> or * <code>index >= size</code> */ public JsonArray set(int index, boolean value) { values.set(index, valueOf(value)); return this; }