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;
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;
13 implements TypeObject, Serializable {
14 private static final long serialVersionUID = -8223745380422869872L;
15 private final Long _value;
17 private static void check_valueRange(final long value) {
18 if (value >= 0L && value <= 4294967295L) {
21 CodeHelpers.throwInvalidRange("[[0..4294967295]]", value);
24 @ConstructorProperties("value")
25 public TNRPCI(Long _value) {
27 check_valueRange(_value);
30 Objects.requireNonNull(_value, "Supplied value may not be null");
36 * Creates a copy from Source Object.
38 * @param source Source object
40 public TNRPCI(TNRPCI source) {
41 this._value = source._value;
44 public static TNRPCI getDefaultInstance(String defaultValue) {
45 return new TNRPCI(Long.valueOf(defaultValue));
48 public Long getValue() {
54 public int hashCode() {
55 return CodeHelpers.wrapperHashCode(_value);
59 public boolean equals(java.lang.Object obj) {
66 if (getClass() != obj.getClass()) {
69 TNRPCI other = (TNRPCI) obj;
70 if (!Objects.equals(_value, other._value)) {
77 public String toString() {
78 final MoreObjects.ToStringHelper helper = MoreObjects.toStringHelper(TNRPCI.class);
79 CodeHelpers.appendValue(helper, "_value", _value);
80 return helper.toString();