@PublicApi public class NodeChildrenContainer extends java.lang.Object
Node
.Modifier and Type | Class and Description |
---|---|
static class |
NodeChildrenContainer.Builder |
Modifier and Type | Method and Description |
---|---|
<T extends Node> |
getChildOrNull(java.lang.String key) |
java.util.Map<java.lang.String,java.util.List<Node>> |
getChildren() |
<T extends Node> |
getChildren(java.lang.String key) |
boolean |
isEmpty() |
static NodeChildrenContainer.Builder |
newNodeChildrenContainer() |
static NodeChildrenContainer.Builder |
newNodeChildrenContainer(java.util.Map<java.lang.String,? extends java.util.List<? extends Node>> childrenMap) |
static NodeChildrenContainer.Builder |
newNodeChildrenContainer(NodeChildrenContainer existing) |
NodeChildrenContainer |
transform(java.util.function.Consumer<NodeChildrenContainer.Builder> builderConsumer) |
public <T extends Node> java.util.List<T> getChildren(java.lang.String key)
public <T extends Node> T getChildOrNull(java.lang.String key)
public java.util.Map<java.lang.String,java.util.List<Node>> getChildren()
public static NodeChildrenContainer.Builder newNodeChildrenContainer()
public static NodeChildrenContainer.Builder newNodeChildrenContainer(java.util.Map<java.lang.String,? extends java.util.List<? extends Node>> childrenMap)
public static NodeChildrenContainer.Builder newNodeChildrenContainer(NodeChildrenContainer existing)
public NodeChildrenContainer transform(java.util.function.Consumer<NodeChildrenContainer.Builder> builderConsumer)
public boolean isEmpty()