diff options
author | 2020-08-12 14:26:15 +0000 | |
---|---|---|
committer | 2020-08-12 14:26:15 +0000 | |
commit | 55d8703366e8e02d97e71b2e1350cb746cee8ff6 (patch) | |
tree | 70edd5e9f537f92a0e835e4765872f86c1a9edb1 /sdnr/wt/devicemanager-gran/provider/src/main/java/org/opendaylight/yang/gen/v1/urn/_3gpp/tsg/sa5/nrm/types/rev180731/NotificationEventType.java | |
parent | 1e9b47aa36b47e60dd2a0d028a8080cf25054ad2 (diff) | |
parent | f501247876cada643f808ef18f1e9611a3331adc (diff) |
Merge "removed devmgr-gran"
Diffstat (limited to 'sdnr/wt/devicemanager-gran/provider/src/main/java/org/opendaylight/yang/gen/v1/urn/_3gpp/tsg/sa5/nrm/types/rev180731/NotificationEventType.java')
-rw-r--r-- | sdnr/wt/devicemanager-gran/provider/src/main/java/org/opendaylight/yang/gen/v1/urn/_3gpp/tsg/sa5/nrm/types/rev180731/NotificationEventType.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/NotificationEventType.java b/sdnr/wt/devicemanager-gran/provider/src/main/java/org/opendaylight/yang/gen/v1/urn/_3gpp/tsg/sa5/nrm/types/rev180731/NotificationEventType.java deleted file mode 100644 index e0857a80d..000000000 --- a/sdnr/wt/devicemanager-gran/provider/src/main/java/org/opendaylight/yang/gen/v1/urn/_3gpp/tsg/sa5/nrm/types/rev180731/NotificationEventType.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 NotificationEventType implements Enumeration { - NFREGISTERED(0, "NF_REGISTERED"), - - NFDEREGISTERED(1, "NF_DEREGISTERED"), - - NFPROFILECHANGED(2, "NF_PROFILE_CHANGED") - ; - - private static final Map<String, NotificationEventType> NAME_MAP; - private static final Map<Integer, NotificationEventType> VALUE_MAP; - - static { - final Builder<String, NotificationEventType> nb = ImmutableMap.builder(); - final Builder<Integer, NotificationEventType> vb = ImmutableMap.builder(); - for (NotificationEventType enumItem : NotificationEventType.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 NotificationEventType(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 NotificationEventType item, if present - * @throws NullPointerException if name is null - */ - public static Optional<NotificationEventType> 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 NotificationEventType item, or null if no such item exists - */ - public static NotificationEventType forValue(int intValue) { - return VALUE_MAP.get(intValue); - } -} |