diff options
author | 2020-08-12 08:06:23 +0200 | |
---|---|---|
committer | 2020-08-12 08:06:38 +0200 | |
commit | f501247876cada643f808ef18f1e9611a3331adc (patch) | |
tree | b817ad4ab6665f1e0fb18ff210d997d2c2c69455 /sdnr/wt/devicemanager-gran/provider/src/main/java/org/opendaylight/yang/gen/v1/urn/_3gpp/tsg/sa5/nrm/types/rev180731/TxDirection.java | |
parent | cd29d2dd98b7c40bd4efb6a8705787ca35e99fe9 (diff) |
removed devmgr-gran
removed devicemanager from onap. will be back in o-ran-sc
Issue-ID: CCSDK-2574
Signed-off-by: Michael Dürre <michael.duerre@highstreet-technologies.com>
Change-Id: I8e05d2e047192f1e82006ba40943b1af4e7d2c13
Diffstat (limited to 'sdnr/wt/devicemanager-gran/provider/src/main/java/org/opendaylight/yang/gen/v1/urn/_3gpp/tsg/sa5/nrm/types/rev180731/TxDirection.java')
-rw-r--r-- | sdnr/wt/devicemanager-gran/provider/src/main/java/org/opendaylight/yang/gen/v1/urn/_3gpp/tsg/sa5/nrm/types/rev180731/TxDirection.java | 73 |
1 files changed, 0 insertions, 73 deletions
diff --git a/sdnr/wt/devicemanager-gran/provider/src/main/java/org/opendaylight/yang/gen/v1/urn/_3gpp/tsg/sa5/nrm/types/rev180731/TxDirection.java b/sdnr/wt/devicemanager-gran/provider/src/main/java/org/opendaylight/yang/gen/v1/urn/_3gpp/tsg/sa5/nrm/types/rev180731/TxDirection.java deleted file mode 100644 index a02cee620..000000000 --- a/sdnr/wt/devicemanager-gran/provider/src/main/java/org/opendaylight/yang/gen/v1/urn/_3gpp/tsg/sa5/nrm/types/rev180731/TxDirection.java +++ /dev/null @@ -1,73 +0,0 @@ -package org.opendaylight.yang.gen.v1.urn._3gpp.tsg.sa5.nrm.types.rev180731; -import com.google.common.collect.ImmutableMap; -import com.google.common.collect.ImmutableMap.Builder; -import java.lang.Integer; -import java.lang.Override; -import java.lang.String; -import java.util.Map; -import java.util.Objects; -import java.util.Optional; -import org.opendaylight.yangtools.yang.binding.Enumeration; - -public enum TxDirection implements Enumeration { - DL(0, "DL"), - - UL(1, "UL"), - - DLAndUL(2, "DL and UL") - ; - - private static final Map<String, TxDirection> NAME_MAP; - private static final Map<Integer, TxDirection> VALUE_MAP; - - static { - final Builder<String, TxDirection> nb = ImmutableMap.builder(); - final Builder<Integer, TxDirection> vb = ImmutableMap.builder(); - for (TxDirection enumItem : TxDirection.values()) { - vb.put(enumItem.value, enumItem); - nb.put(enumItem.name, enumItem); - } - - NAME_MAP = nb.build(); - VALUE_MAP = vb.build(); - } - - private final String name; - private final int value; - - private TxDirection(int value, String name) { - this.value = value; - this.name = name; - } - - @Override - public String getName() { - return name; - } - - @Override - public int getIntValue() { - return value; - } - - /** - * Return the enumeration member whose {@link #getName()} matches specified value. - * - * @param name YANG assigned name - * @return corresponding TxDirection item, if present - * @throws NullPointerException if name is null - */ - public static Optional<TxDirection> forName(String name) { - return Optional.ofNullable(NAME_MAP.get(Objects.requireNonNull(name))); - } - - /** - * Return the enumeration member whose {@link #getIntValue()} matches specified value. - * - * @param intValue integer value - * @return corresponding TxDirection item, or null if no such item exists - */ - public static TxDirection forValue(int intValue) { - return VALUE_MAP.get(intValue); - } -} |