@Override public Builder setComponents(ComponentContext... components) { network.components.clear(); for (ComponentContext component : components) { network.components.put(component.name(), component); } return this; }
@Override public Builder setComponents(Collection<ComponentContext> components) { Args.checkNotNull(components, "components cannot be null"); network.components.clear(); for (ComponentContext component : components) { network.components.put(component.name(), component); } return this; }
@Override public Builder removeComponent(ComponentContext component) { Args.checkNotNull(component, "component cannot be null"); network.components.remove(component.name()); return this; }