Create VES client example for domain 'notification'
[oam.git] / features / devicemanager / g-ran / ru-fh / provider / src / main / java / org / opendaylight / yang / gen / v1 / urn / _3gpp / tsg / sa5 / nrm / types / rev180731 / TNRPCI.java
1 package org.opendaylight.yang.gen.v1.urn._3gpp.tsg.sa5.nrm.types.rev180731;
2 import com.google.common.base.MoreObjects;
3 import java.beans.ConstructorProperties;
4 import java.io.Serializable;
5 import java.lang.Long;
6 import java.lang.Override;
7 import java.lang.String;
8 import java.util.Objects;
9 import org.opendaylight.yangtools.yang.binding.CodeHelpers;
10 import org.opendaylight.yangtools.yang.binding.TypeObject;
11
12 public class TNRPCI
13  implements TypeObject, Serializable {
14     private static final long serialVersionUID = -8223745380422869872L;
15     private final Long _value;
16
17     private static void check_valueRange(final long value) {
18         if (value >= 0L && value <= 4294967295L) {
19             return;
20         }
21         CodeHelpers.throwInvalidRange("[[0..4294967295]]", value);
22     }
23
24     @ConstructorProperties("value")
25     public TNRPCI(Long _value) {
26         if (_value != null) {
27             check_valueRange(_value);
28         }
29     
30         Objects.requireNonNull(_value, "Supplied value may not be null");
31     
32         this._value = _value;
33     }
34     
35     /**
36      * Creates a copy from Source Object.
37      *
38      * @param source Source object
39      */
40     public TNRPCI(TNRPCI source) {
41         this._value = source._value;
42     }
43
44     public static TNRPCI getDefaultInstance(String defaultValue) {
45         return new TNRPCI(Long.valueOf(defaultValue));
46     }
47
48     public Long getValue() {
49         return _value;
50     }
51
52
53     @Override
54     public int hashCode() {
55         return CodeHelpers.wrapperHashCode(_value);
56     }
57
58     @Override
59     public boolean equals(java.lang.Object obj) {
60         if (this == obj) {
61             return true;
62         }
63         if (obj == null) {
64             return false;
65         }
66         if (getClass() != obj.getClass()) {
67             return false;
68         }
69         TNRPCI other = (TNRPCI) obj;
70         if (!Objects.equals(_value, other._value)) {
71             return false;
72         }
73         return true;
74     }
75
76     @Override
77     public String toString() {
78         final MoreObjects.ToStringHelper helper = MoreObjects.toStringHelper(TNRPCI.class);
79         CodeHelpers.appendValue(helper, "_value", _value);
80         return helper.toString();
81     }
82 }
83