import com.google.common.base.Preconditions;
import com.google.common.collect.ImmutableList;
-
import java.util.Collections;
import java.util.List;
-
import org.opendaylight.yangtools.yang.common.QName;
import org.opendaylight.yangtools.yang.model.api.SchemaPath;
import org.opendaylight.yangtools.yang.model.api.Status;
private static final String REFERENCE = "https://tools.ietf.org/html/rfc6020#section-9.12";
private final List<TypeDefinition<?>> types;
- @Deprecated
- public UnionType(final List<TypeDefinition<?>> types) {
+ private UnionType(final List<TypeDefinition<?>> types) {
Preconditions.checkNotNull(types,"When the type is 'union', the 'type' statement MUST be present.");
this.types = ImmutableList.copyOf(types);
}