super();
}
+ protected ImmutableChoiceNodeBuilder(final int sizeHint) {
+ super(sizeHint);
+ }
+
protected ImmutableChoiceNodeBuilder(final ImmutableChoiceNode node) {
super(node);
}
return new ImmutableChoiceNodeBuilder();
}
+ public static DataContainerNodeBuilder<YangInstanceIdentifier.NodeIdentifier, ChoiceNode> create(final int sizeHint) {
+ return new ImmutableChoiceNodeBuilder(sizeHint);
+ }
+
public static DataContainerNodeBuilder<YangInstanceIdentifier.NodeIdentifier, ChoiceNode> create(final ChoiceNode node) {
if (!(node instanceof ImmutableChoiceNode)) {
throw new UnsupportedOperationException(String.format("Cannot initialize from class %s", node.getClass()));
return new ImmutableChoiceNode(getNodeIdentifier(), buildValue());
}
- private static final class ImmutableChoiceNode
- extends AbstractImmutableDataContainerNode<YangInstanceIdentifier.NodeIdentifier>
- implements ChoiceNode {
+ private static final class ImmutableChoiceNode extends AbstractImmutableDataContainerNode<YangInstanceIdentifier.NodeIdentifier> implements ChoiceNode {
ImmutableChoiceNode(final YangInstanceIdentifier.NodeIdentifier nodeIdentifier,
- final Map<YangInstanceIdentifier.PathArgument, DataContainerChild<? extends YangInstanceIdentifier.PathArgument, ?>> children) {
+ final Map<YangInstanceIdentifier.PathArgument, DataContainerChild<? extends YangInstanceIdentifier.PathArgument, ?>> children) {
super(children, nodeIdentifier);
}
}