aboutsummaryrefslogtreecommitdiffstats
path: root/sli/provider/src/test/java/org/opendaylight/yang/gen/v1/test/CosModelType.java
blob: 2aaaf8aa3ebac2391c4db9047311b4168a2088d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
package org.opendaylight.yang.gen.v1.test;

public enum CosModelType {
    _4COS(0, "4COS"),
    
    _6COS(1, "6COS")
    ;

    private static final java.util.Map<java.lang.Integer, CosModelType> VALUE_MAP;

    static {
        final com.google.common.collect.ImmutableMap.Builder<java.lang.Integer, CosModelType> b = com.google.common.collect.ImmutableMap.builder();
        for (CosModelType enumItem : CosModelType.values()) {
            b.put(enumItem.value, enumItem);
        }

        VALUE_MAP = b.build();
    }

    private final java.lang.String name;
    private final int value;

    private CosModelType(int value, java.lang.String name) {
        this.value = value;
        this.name = name;
    }

    /**
     * Returns the name of the enumeration item as it is specified in the input yang.
     *
     * @return the name of the enumeration item as it is specified in the input yang
     */
    public java.lang.String getName() {
        return name;
    }

    /**
     * @return integer value
     */
    public int getIntValue() {
        return value;
    }

    /**
     * @param valueArg integer value
     * @return corresponding CosModelType item
     */
    public static CosModelType forValue(int valueArg) {
        return VALUE_MAP.get(valueArg);
    }
}