Package club.someoneice.json.node
Class ArrayNode
-
Nested Class Summary
Nested classes/interfaces inherited from class club.someoneice.json.node.JsonNode
JsonNode.NodeType -
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadd(boolean b) add(double d) add(float f) add(int i) add(long l) JsonNode<?> voidvoidSafeVarages:
继承后替换为所属的泛型,此处泛型堆为安全接口。
禁止直接序列化 TreeNode.clear()copy()JsonNode<?> get(int i) JsonNode<?> getAsTypeOrNull(int i, JsonNode.NodeType nodeType) JsonNode<?> getAsTypeOrThrow(int i, JsonNode.NodeType nodeType) JsonNode<?> getAsTypeOrThrow(int i, JsonNode.NodeType nodeType, String message) getObj()getType()获取 JsonNode 持有的参形。通常这个方法会被对应属性的JsonNode覆写,因此JsonNode默认的匹配机制只会在类型持有时被执行一次。booleanisEmpty()booleaniterator()stream()Methods inherited from class club.someoneice.json.node.JsonNode
asArrayNodeOrEmpty, asJsonNode, asJsonNodeOrEmpty, asMapNodeOrEmpty, asTypeNodeOrThrow, asTypeNodeOrThrow, asTypeOrElse, asTypeOrNull, clone, equals, hashCode, isNull, nonNull, toString, typeOfMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface club.someoneice.json.api.NodeLike
fromJsonNode
-
Constructor Details
-
ArrayNode
-
ArrayNode
public ArrayNode()
-
-
Method Details
-
add
-
addAll
-
get
-
getAsTypeOrNull
-
getAsTypeOrThrow
-
getAsTypeOrThrow
-
clear
-
isEmpty
public boolean isEmpty() -
isNotEmpty
public boolean isNotEmpty() -
stream
-
copy
-
copy
-
add
-
add
-
add
-
add
-
add
-
add
-
add
-
add
-
getObj
-
getType
Description copied from class:JsonNode获取 JsonNode 持有的参形。通常这个方法会被对应属性的JsonNode覆写,因此JsonNode默认的匹配机制只会在类型持有时被执行一次。 -
addChild
Description copied from interface:TreeNodeSafeVarages:
继承后替换为所属的泛型,此处泛型堆为安全接口。
禁止直接序列化 TreeNode. -
iterator
-
asTypeNode
- Overrides:
asTypeNodein classJsonNode<List<JsonNode<?>>>- Returns:
- 将未知的类型重写为可知类型。
-
copy
-