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,JakartaJsonObject,OrgJsonObject
public interface JsonObjectCore<JVC extends JsonValueCore<JVC>>
extends JsonObjectBase<JVC>, JsonValueCore<JVC>
- Author:
- Wei-Ming Wu
-
Method Summary
Modifier and TypeMethodDescriptionbooleanRemoves 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, spliteratorMethods inherited from interface com.github.wnameless.json.base.JsonObjectBase
contains, get, isEmpty, names, size, stream, toMapMethods inherited from interface com.github.wnameless.json.base.JsonSource
getSourceMethods inherited from interface com.github.wnameless.json.base.JsonValueBase
asBigDecimal, asBigInteger, asBoolean, asDouble, asInt, asLong, asNull, asNumber, asString, isArray, isBoolean, isNull, isNumber, isObject, isStringMethods inherited from interface com.github.wnameless.json.base.JsonValueCore
asArray, asObject, asValue
-
Method Details
-
set
Sets an element by given field name andJsonSource.- Parameters:
name- a field namejsonSource- aJsonSource
-
remove
Removes an element by given field name.- Parameters:
name- a field name- Returns:
- true if an element removed, false otherwise
-