/** * Replaces a value in the array with * a {@link JsonValue#NULL} value at the specified position. * * @param index the position in the array * @return this array builder * @throws IndexOutOfBoundsException if the index is out of range * {@code (index < 0 || index >= array size)} * * @since 1.1 */ default JsonArrayBuilder setNull(int index) { return set(index, JsonValue.NULL); }
@Override public JsonArray replace(JsonValue value) { if (!contains()) { throw new JsonException(JsonMessages.NODEREF_ARRAY_INDEX_ERR(index, array.size())); } JsonArrayBuilder builder = Json.createArrayBuilder(this.array); return builder.set(index, value).build(); } }
@Override public JsonArray replace(JsonValue value) { if (!contains()) { throw new JsonException(JsonMessages.NODEREF_ARRAY_INDEX_ERR(index, array.size())); } JsonArrayBuilder builder = Json.createArrayBuilder(this.array); return builder.set(index, value).build(); } }
/** * Replaces a value in the array with * a {@link JsonValue#NULL} value at the specified position. * * @param index the position in the array * @return this array builder * @throws IndexOutOfBoundsException if the index is out of range * {@code (index < 0 || index >= array size)} * * @since 1.1 */ default JsonArrayBuilder setNull(int index) { return set(index, JsonValue.NULL); }
/** * Replaces a value in the array with * a {@link JsonValue#NULL} value at the specified position. * * @param index the position in the array * @return this array builder * @throws IndexOutOfBoundsException if the index is out of range * {@code (index < 0 || index >= array size)} * * @since 1.1 */ default JsonArrayBuilder setNull(int index) { return set(index, JsonValue.NULL); }
/** * Replaces a value in the array with * a {@link JsonValue#NULL} value at the specified position. * * @param index the position in the array * @return this array builder * @throws IndexOutOfBoundsException if the index is out of range * {@code (index < 0 || index >= array size)} * * @since 1.1 */ default JsonArrayBuilder setNull(int index) { return set(index, JsonValue.NULL); }
/** * Replaces a value in the array with * a {@link JsonValue#NULL} value at the specified position. * * @param index the position in the array * @return this array builder * @throws IndexOutOfBoundsException if the index is out of range * {@code (index < 0 || index >= array size)} * * @since 1.1 */ default JsonArrayBuilder setNull(int index) { return set(index, JsonValue.NULL); }
/** * Replaces a value in the array with * a {@link JsonValue#NULL} value at the specified position. * * @param index the position in the array * @return this array builder * @throws IndexOutOfBoundsException if the index is out of range * {@code (index < 0 || index >= array size)} * * @since 1.1 */ default JsonArrayBuilder setNull(int index) { return set(index, JsonValue.NULL); }
/** * Replaces a value in the array with * a {@link JsonValue#NULL} value at the specified position. * * @param index the position in the array * @return this array builder * @throws IndexOutOfBoundsException if the index is out of range * {@code (index < 0 || index >= array size)} * * @since 1.1 */ default JsonArrayBuilder setNull(int index) { return set(index, JsonValue.NULL); }
/** * Replaces a value in the array with * a {@link JsonValue#NULL} value at the specified position. * * @param index the position in the array * @return this array builder * @throws IndexOutOfBoundsException if the index is out of range * {@code (index < 0 || index >= array size)} * * @since 1.1 */ default JsonArrayBuilder setNull(int index) { return set(index, JsonValue.NULL); }
/** * Replaces a value in the array with * a {@link JsonValue#NULL} value at the specified position. * * @param index the position in the array * @return this array builder * @throws IndexOutOfBoundsException if the index is out of range * {@code (index < 0 || index >= array size)} * * @since 1.1 */ default JsonArrayBuilder setNull(int index) { return set(index, JsonValue.NULL); }
/** * Replaces a value in the array with * a {@link JsonValue#NULL} value at the specified position. * * @param index the position in the array * @return this array builder * @throws IndexOutOfBoundsException if the index is out of range * {@code (index < 0 || index >= array size)} * * @since 1.1 */ default JsonArrayBuilder setNull(int index) { return set(index, JsonValue.NULL); }
@Override public JsonArray replace(JsonValue value) { if (!contains()) { throw new JsonException(JsonMessages.NODEREF_ARRAY_INDEX_ERR(index, array.size())); } JsonArrayBuilder builder = Json.createArrayBuilder(this.array); return builder.set(index, value).build(); } }
@Override public JsonArray replace(JsonValue value) { if (!contains()) { throw new JsonException(JsonMessages.NODEREF_ARRAY_INDEX_ERR(index, array.size())); } JsonArrayBuilder builder = Json.createArrayBuilder(this.array); return builder.set(index, value).build(); } }
@Override public JsonArray replace(JsonValue value) { if (!contains()) { throw new JsonException(JsonMessages.NODEREF_ARRAY_INDEX_ERR(index, array.size())); } JsonArrayBuilder builder = Json.createArrayBuilder(this.array); return builder.set(index, value).build(); } }
@Override public JsonArray replace(JsonValue value) { if (!contains()) { throw new JsonException(JsonMessages.NODEREF_ARRAY_INDEX_ERR(index, array.size())); } JsonArrayBuilder builder = Json.createArrayBuilder(this.array); return builder.set(index, value).build(); } }