blob: 8b3245a03369fc3ca0f5ecc15964f3cd7e43b2b0 [file] [log] [blame]
Dimitrios Mavrommatis96b255a2017-12-06 13:09:25 -08001/**
2 * This class file was automatically generated by jASN1 v1.8.2 (http://www.openmuc.org)
3 */
4
5package org.onosproject.xran.asn1lib.api;
6
7import org.onosproject.xran.asn1lib.ber.types.BerBitString;
8
9import javax.xml.bind.DatatypeConverter;
10import java.util.Arrays;
11
12
13public class CRNTI extends BerBitString {
14
15 private static final long serialVersionUID = 1L;
16
17 public CRNTI() {
18 }
19
20 public CRNTI(byte[] code) {
21 super(code);
22 }
23
24 public CRNTI(byte[] value, int numBits) {
25 super(value, numBits);
26 }
27
28 @Override
29 public int hashCode() {
30 return Arrays.hashCode(value);
31 }
32
33 @Override
34 public boolean equals(Object obj) {
35 if (obj instanceof CRNTI) {
36 return Arrays.equals(value, ((CRNTI) obj).value);
37 }
38 return super.equals(obj);
39 }
40
41 @Override
42 public String toString() {
43 return "" + DatatypeConverter.printHexBinary(value) + "";
44 }
45}