Package com.github.wnameless.json.base
Interface JsonValueCore<JVC extends JsonValueCore<JVC>>
- Type Parameters:
JVC- the type of a JSON implementation wrapper
- All Superinterfaces:
Jsonable,JsonSource,JsonValueBase<JVC>
- All Known Subinterfaces:
JsonArrayCore<JVC>,JsonObjectCore<JVC>
- All Known Implementing Classes:
GsonJsonArray,GsonJsonObject,GsonJsonValue,JacksonJsonArray,JacksonJsonObject,JacksonJsonValue,JakartaJsonArray,JakartaJsonObject,JakartaJsonValue,OrgJsonArray,OrgJsonObject,OrgJsonValue
public interface JsonValueCore<JVC extends JsonValueCore<JVC>>
extends JsonValueBase<JVC>, JsonSource
JsonValueCore extends JsonValueBase and alters the returning values of
asObject(), asArray() and asValue() from immutable "Base" version to
mutable "Core" version.It also extends
JsonSource which allows it returns the JSON implementation object of this
wrapper.- Author:
- Wei-Ming Wu
-
Method Summary
Methods inherited from interface com.github.wnameless.json.base.JsonSource
getSource
-
Method Details
-
asObject
JsonObjectCore<JVC> asObject()Description copied from interface:JsonValueBaseConverts this to a JSON object wrapper.- Specified by:
asObjectin interfaceJsonValueBase<JVC extends JsonValueCore<JVC>>- Returns:
- a JSON object wrapper
-
asArray
JsonArrayCore<JVC> asArray()Description copied from interface:JsonValueBaseConverts this to a JSON array wrapper.- Specified by:
asArrayin interfaceJsonValueBase<JVC extends JsonValueCore<JVC>>- Returns:
- a JSON array wrapper
-
asValue
JsonValueCore<JVC> asValue()Description copied from interface:JsonValueBaseConverts this to a JSON value wrapper.- Specified by:
asValuein interfaceJsonValueBase<JVC extends JsonValueCore<JVC>>- Returns:
- a JSON value wrapper
-