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
public interface JsonValueCore<JVC extends JsonValueCore<JVC>> extends JsonValueBase<JVC>, JsonSource
JsonValueCoreextendsJsonValueBaseand alters the returning values ofasObject(),asArray()andasValue()from immutable "Base" version to mutable "Core" version.
It also extendsJsonSourcewhich allows it returns the JSON implementation object of this wrapper.- Author:
- Wei-Ming Wu
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description JsonArrayCore<JVC>asArray()Converts this to a JSON array wrapper.JsonObjectCore<JVC>asObject()Converts this to a JSON object wrapper.JsonValueCore<JVC>asValue()Converts this to a JSON value wrapper.-
Methods inherited from interface com.github.wnameless.json.base.JsonSource
getSource
-
-
-
-
Method Detail
-
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
-
-