a863b1e288dd226fd53bcdd4873cda95e572111a
[mdsal.git] / model / ietf / rfc8776-ietf-te-types / src / main / java / org / opendaylight / yang / gen / v1 / urn / ietf / params / xml / ns / yang / ietf / te / types / rev200610 / AdminGroupsBuilder.java
1 /*
2  * Copyright (c) 2020 PANTHEON.tech, s.r.o. and others.  All rights reserved.
3  *
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
7  */
8 package org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.te.types.rev200610;
9
10 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.HexString;
11
12 public class AdminGroupsBuilder {
13     private AdminGroupsBuilder() {
14         // Hidden on purpose
15     }
16
17     public static AdminGroups getDefaultInstance(final String defaultValue) {
18         final HexString hex = new HexString(defaultValue);
19         return defaultValue.length() <= 11 ? new AdminGroups(new AdminGroup(hex))
20                 : new AdminGroups(new ExtendedAdminGroup(hex));
21     }
22 }