2 * Copyright (c) 2018 ZTE, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.yang.gen.v1.urn.test.unsigned.rev180408;
11 * The purpose of generated class in src/main/java for Union types is to create new instances of unions from a string representation.
12 * In some cases it is very difficult to automate it since there can be unions such as (uint32 - uint16), or (string - uint32).
14 * The reason behind putting it under src/main/java is:
15 * This class is generated in form of a stub and needs to be finished by the user. This class is generated only once to prevent
18 public class NumberUnionBuilder {
19 private NumberUnionBuilder() {
20 //Exists only to defeat instantiation.
23 public static NumberUnion getDefaultInstance(String defaultValue) {
24 throw new UnsupportedOperationException("Not yet implemented");