Package graphql.language
Class NodeChildrenContainer
- java.lang.Object
-
- graphql.language.NodeChildrenContainer
-
@PublicApi public class NodeChildrenContainer extends java.lang.Object
Container of children of aNode
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NodeChildrenContainer.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends Node>
TgetChildOrNull(java.lang.String key)
java.util.Map<java.lang.String,java.util.List<Node>>
getChildren()
<T extends Node>
java.util.List<T>getChildren(java.lang.String key)
boolean
isEmpty()
static NodeChildrenContainer.Builder
newNodeChildrenContainer()
static NodeChildrenContainer.Builder
newNodeChildrenContainer(NodeChildrenContainer existing)
static NodeChildrenContainer.Builder
newNodeChildrenContainer(java.util.Map<java.lang.String,? extends java.util.List<? extends Node>> childrenMap)
NodeChildrenContainer
transform(java.util.function.Consumer<NodeChildrenContainer.Builder> builderConsumer)
-
-
-
Method Detail
-
getChildren
public <T extends Node> java.util.List<T> getChildren(java.lang.String key)
-
getChildOrNull
public <T extends Node> T getChildOrNull(java.lang.String key)
-
getChildren
public java.util.Map<java.lang.String,java.util.List<Node>> getChildren()
-
newNodeChildrenContainer
public static NodeChildrenContainer.Builder newNodeChildrenContainer()
-
newNodeChildrenContainer
public static NodeChildrenContainer.Builder newNodeChildrenContainer(java.util.Map<java.lang.String,? extends java.util.List<? extends Node>> childrenMap)
-
newNodeChildrenContainer
public static NodeChildrenContainer.Builder newNodeChildrenContainer(NodeChildrenContainer existing)
-
transform
public NodeChildrenContainer transform(java.util.function.Consumer<NodeChildrenContainer.Builder> builderConsumer)
-
isEmpty
public boolean isEmpty()
-
-