1 package org.opendaylight.yang.gen.v1.urn._3gpp.tsg.sa5.nrm.types.rev180731;
2 import com.google.common.base.MoreObjects;
3 import com.google.common.collect.ImmutableList;
4 import java.beans.ConstructorProperties;
5 import java.io.Serializable;
6 import java.lang.Override;
7 import java.lang.String;
9 import java.util.Objects;
10 import java.util.regex.Pattern;
11 import org.opendaylight.yangtools.yang.binding.CodeHelpers;
12 import org.opendaylight.yangtools.yang.binding.TypeObject;
15 implements TypeObject, Serializable {
16 private static final long serialVersionUID = 7207647705509368021L;
17 public static final List<String> PATTERN_CONSTANTS = ImmutableList.of("^(?:[0-9][0-9][0-9]|[0-9][0-9])$");
18 private static final Pattern patterns = Pattern.compile(PATTERN_CONSTANTS.get(0));
19 private static final String regexes = "[0-9][0-9][0-9]|[0-9][0-9]";
20 private final String _value;
22 private static void check_valueLength(final String value) {
25 @ConstructorProperties("value")
26 public TMnc(String _value) {
28 check_valueLength(_value);
31 Objects.requireNonNull(_value, "Supplied value may not be null");
32 CodeHelpers.checkPattern(_value, patterns, regexes);
38 * Creates a copy from Source Object.
40 * @param source Source object
42 public TMnc(TMnc source) {
43 this._value = source._value;
46 public static TMnc getDefaultInstance(String defaultValue) {
47 return new TMnc(defaultValue);
50 public String getValue() {
56 public int hashCode() {
57 return CodeHelpers.wrapperHashCode(_value);
61 public boolean equals(java.lang.Object obj) {
68 if (getClass() != obj.getClass()) {
71 TMnc other = (TMnc) obj;
72 if (!Objects.equals(_value, other._value)) {
79 public String toString() {
80 final MoreObjects.ToStringHelper helper = MoreObjects.toStringHelper(TMnc.class);
81 CodeHelpers.appendValue(helper, "_value", _value);
82 return helper.toString();