@Nonnull @Override public NodeBuilder getChildNode(@Nonnull String name) { checkValidName(name); return createChildBuilder(name); }
@NotNull @Override public NodeBuilder getChildNode(@NotNull String name) { checkValidName(name); return createChildBuilder(name); }
@NotNull @Override public NodeBuilder setChildNode(@NotNull String name, @NotNull NodeState state) { checkState(exists(), "This builder does not exist: " + this.name); head().getMutableNodeState().setChildNode(name, checkNotNull(state)); MemoryNodeBuilder builder = createChildBuilder(name); updated(); return builder; }
@Nonnull @Override public NodeBuilder setChildNode(@Nonnull String name, @Nonnull NodeState state) { checkState(exists(), "This builder does not exist: " + this.name); head().getMutableNodeState().setChildNode(name, checkNotNull(state)); MemoryNodeBuilder builder = createChildBuilder(name); updated(); return builder; }