public JsonArray add(java.lang.Object value) { JsonImpl.checkJsonType(value); list.add(value); return this; }
@Override public JsonObject put(String key, Object value) { JsonImpl.checkJsonType(value); map.put(key, value); return this; }
@Override public JsonObject put(String key, Object value) { JsonImpl.checkJsonType(value); map.put(key, value); return this; }
public JsonArray add(java.lang.Object value) { JsonImpl.checkJsonType(value); list.add(value); return this; }
public void add(java.lang.Object value) { JsonImpl.checkJsonType(value); list.add(value); }
@Override public void put(String key, Object value) { JsonImpl.checkJsonType(value); map.put(key, value); }
public void add(int index, java.lang.Object value) { JsonImpl.checkJsonType(value); // TODO(mmastrac): Use an array rather than ArrayList to make this more efficient while (list.size() < index) list.add(null); list.add(index, value); }
@Override public void set(int index, java.lang.Object value) { JsonImpl.checkJsonType(value); // TODO(mmastrac): Use an array rather than ArrayList to make this more efficient while (list.size() <= index) list.add(null); list.set(index, value); }
public JsonArray add(int index, java.lang.Object value) { JsonImpl.checkJsonType(value); // TODO(mmastrac): Use an array rather than ArrayList to make this more efficient while (list.size() < index) list.add(null); list.add(index, value); return this; }
@Override public JsonArray set(int index, java.lang.Object value) { JsonImpl.checkJsonType(value); // TODO(mmastrac): Use an array rather than ArrayList to make this more efficient while (list.size() <= index) list.add(null); list.set(index, value); return this; }
public JsonArray add(int index, java.lang.Object value) { JsonImpl.checkJsonType(value); // TODO(mmastrac): Use an array rather than ArrayList to make this more efficient while (list.size() < index) list.add(null); list.add(index, value); return this; }
@Override public JsonArray set(int index, java.lang.Object value) { JsonImpl.checkJsonType(value); // TODO(mmastrac): Use an array rather than ArrayList to make this more efficient while (list.size() <= index) list.add(null); list.set(index, value); return this; }