Package com.github.wnameless.json.base
Interface JsonArrayCore<JVC extends JsonValueCore<JVC>>
-
- Type Parameters:
JVC- the type of a JSON implementation wrapper
- All Superinterfaces:
Iterable<JVC>,Jsonable,JsonArrayBase<JVC>,JsonSource,JsonValueBase<JVC>,JsonValueCore<JVC>
- All Known Implementing Classes:
GsonJsonArray,JacksonJsonArray
public interface JsonArrayCore<JVC extends JsonValueCore<JVC>> extends JsonArrayBase<JVC>, JsonValueCore<JVC>
- Author:
- Wei-Ming Wu
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidadd(JsonSource jsonSource)Sets an element by givenJsonSource.booleanremove(int index)Removes an element by given index.voidset(int index, JsonSource jsonSource)Sets an element by given index andJsonSource.-
Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Methods inherited from interface com.github.wnameless.json.base.JsonArrayBase
get, isEmpty, size, toList
-
Methods inherited from interface com.github.wnameless.json.base.JsonSource
getSource
-
Methods inherited from interface com.github.wnameless.json.base.JsonValueBase
asBigDecimal, asBigInteger, asBoolean, asDouble, asInt, asLong, asNull, asNumber, asString, isArray, isBoolean, isNull, isNumber, isObject, isString
-
Methods inherited from interface com.github.wnameless.json.base.JsonValueCore
asArray, asObject, asValue
-
-
-
-
Method Detail
-
add
void add(JsonSource jsonSource)
Sets an element by givenJsonSource.- Parameters:
jsonSource- aJsonSource
-
set
void set(int index, JsonSource jsonSource)Sets an element by given index andJsonSource.- Parameters:
index- a position in this JSON arrayjsonSource- aJsonSource
-
remove
boolean remove(int index)
Removes an element by given index.- Parameters:
index- a position in this JSON array- Returns:
- true if an element removed, false otherwise
-
-