slowr | 13fa5b0 | 2017-08-08 16:32:31 -0700 | [diff] [blame] | 1 | /** |
| 2 | * This class file was automatically generated by jASN1 v1.8.0 (http://www.openmuc.org) |
| 3 | */ |
| 4 | |
| 5 | package org.onosproject.xran.codecs.api; |
| 6 | |
| 7 | import org.openmuc.jasn1.ber.types.BerOctetString; |
| 8 | |
slowr | 67d05e4 | 2017-08-11 20:37:22 -0700 | [diff] [blame] | 9 | import javax.xml.bind.DatatypeConverter; |
| 10 | import java.util.Arrays; |
| 11 | |
slowr | 13fa5b0 | 2017-08-08 16:32:31 -0700 | [diff] [blame] | 12 | |
| 13 | public class PLMNIdentity extends BerOctetString { |
| 14 | |
slowr | 67d05e4 | 2017-08-11 20:37:22 -0700 | [diff] [blame] | 15 | private static final long serialVersionUID = 1L; |
slowr | 13fa5b0 | 2017-08-08 16:32:31 -0700 | [diff] [blame] | 16 | |
slowr | 67d05e4 | 2017-08-11 20:37:22 -0700 | [diff] [blame] | 17 | public PLMNIdentity() { |
| 18 | } |
slowr | 13fa5b0 | 2017-08-08 16:32:31 -0700 | [diff] [blame] | 19 | |
slowr | 67d05e4 | 2017-08-11 20:37:22 -0700 | [diff] [blame] | 20 | public PLMNIdentity(byte[] value) { |
| 21 | super(value); |
| 22 | } |
slowr | 13fa5b0 | 2017-08-08 16:32:31 -0700 | [diff] [blame] | 23 | |
slowr | 67d05e4 | 2017-08-11 20:37:22 -0700 | [diff] [blame] | 24 | @Override |
| 25 | public int hashCode() { |
| 26 | return Arrays.hashCode(value); |
| 27 | } |
| 28 | |
| 29 | @Override |
| 30 | public boolean equals(Object obj) { |
| 31 | if (obj instanceof PLMNIdentity) { |
| 32 | return Arrays.equals(value, ((PLMNIdentity) obj).value); |
| 33 | } |
| 34 | return super.equals(obj); |
| 35 | } |
| 36 | |
| 37 | @Override |
| 38 | public String toString() { |
| 39 | return "\"" + DatatypeConverter.printHexBinary(value) + "\""; |
| 40 | } |
slowr | 13fa5b0 | 2017-08-08 16:32:31 -0700 | [diff] [blame] | 41 | } |