/** * Sets the specified index to the given value. * * @param index the index to set * @param value the value to set * @return the previous value at this index, or <code>null</code> if this * index was empty */ public JSONValue set(int index, JSONValue value) { JSONValue previous = get(index); set0(index, value); return previous; }
/** * Sets the specified index to the given value. * * @param index the index to set * @param value the value to set * @return the previous value at this index, or <code>null</code> if this * index was empty */ public JSONValue set(int index, JSONValue value) { JSONValue previous = get(index); set0(index, value); return previous; }