Package com.github.wnameless.json.base
Interface JsonObjectCore<JVC extends JsonValueCore<JVC>>
-
- Type Parameters:
JVC- the type of a JSON implementation wrapper
- All Superinterfaces:
Iterable<Map.Entry<String,JVC>>,Jsonable,JsonObjectBase<JVC>,JsonSource,JsonValueBase<JVC>,JsonValueCore<JVC>
- All Known Implementing Classes:
GsonJsonObject,JacksonJsonObject
public interface JsonObjectCore<JVC extends JsonValueCore<JVC>> extends JsonObjectBase<JVC>, JsonValueCore<JVC>
- Author:
- Wei-Ming Wu
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanremove(String name)Removes an element by given field name.voidset(String name, JsonSource jsonSource)Sets an element by given field name andJsonSource.-
Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Methods inherited from interface com.github.wnameless.json.base.JsonObjectBase
contains, get, isEmpty, names, size, toMap
-
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
-
set
void set(String name, JsonSource jsonSource)
Sets an element by given field name andJsonSource.- Parameters:
name- a field namejsonSource- aJsonSource
-
remove
boolean remove(String name)
Removes an element by given field name.- Parameters:
name- a field name- Returns:
- true if an element removed, false otherwise
-
-