Json Primitive
表示 JSON 规范中的原始类型。
它可以包含 String, Number 或 Boolean 值。
Author
M8Test, [email protected], https://m8test.com
Functions
Link copied to clipboard
abstract fun also(block: (ERROR CLASS: Symbol not found for com.google.gson.JsonElement) -> Unit): ObjectWrapper<ERROR CLASS: Symbol not found for com.google.gson.JsonElement>
对 ObjectWrapper
Link copied to clipboard
abstract fun apply(block: ERROR CLASS: Symbol not found for com.google.gson.JsonElement.() -> Unit): ObjectWrapper<ERROR CLASS: Symbol not found for com.google.gson.JsonElement>
对 ObjectWrapper
Link copied to clipboard
如果此元素是有效的 Boolean,则返回其值;否则返回 null。
Link copied to clipboard
如果此元素是有效的 Double 数字,则返回其值;否则返回 null。
Link copied to clipboard
如果此元素是有效的 Float 数字,则返回其值;否则返回 null。
Link copied to clipboard
如果此元素是有效的 Int 数字,则返回其值;否则返回 null。
Link copied to clipboard
如果此元素是有效的 Long 数字,则返回其值;否则返回 null。
Link copied to clipboard
如果此元素是 JSON 原始类型,则返回其字符串表示;否则返回 null。
Link copied to clipboard
检查此元素是否为 JsonArray。
Link copied to clipboard
检查此元素是否为 JSON null。
Link copied to clipboard
检查此元素是否为 JsonObject。
Link copied to clipboard
检查此元素是否为 JSON 原始类型 (string, number, boolean)。
Link copied to clipboard
abstract fun takeIf(predicate: (ERROR CLASS: Symbol not found for com.google.gson.JsonElement) -> Boolean): ObjectWrapper<ERROR CLASS: Symbol not found for com.google.gson.JsonElement>?
如果 ObjectWrapper
Link copied to clipboard
abstract fun takeUnless(predicate: (ERROR CLASS: Symbol not found for com.google.gson.JsonElement) -> Boolean): ObjectWrapper<ERROR CLASS: Symbol not found for com.google.gson.JsonElement>?
如果 ObjectWrapper