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 | |
slowr | 60d4d10 | 2017-08-16 18:33:58 -0700 | [diff] [blame] | 7 | import org.onosproject.xran.codecs.ber.types.BerInteger; |
slowr | 13fa5b0 | 2017-08-08 16:32:31 -0700 | [diff] [blame] | 8 | |
| 9 | import java.math.BigInteger; |
| 10 | |
| 11 | |
| 12 | public class PhysCellId extends BerInteger { |
| 13 | |
| 14 | private static final long serialVersionUID = 1L; |
| 15 | |
| 16 | public PhysCellId() { |
| 17 | } |
| 18 | |
| 19 | public PhysCellId(byte[] code) { |
| 20 | super(code); |
| 21 | } |
| 22 | |
| 23 | public PhysCellId(BigInteger value) { |
| 24 | super(value); |
| 25 | } |
| 26 | |
| 27 | public PhysCellId(long value) { |
| 28 | super(value); |
| 29 | } |
| 30 | |
| 31 | @Override |
| 32 | public int hashCode() { |
| 33 | return value.intValue(); |
| 34 | } |
| 35 | |
| 36 | @Override |
| 37 | public boolean equals(Object obj) { |
| 38 | if (obj instanceof PhysCellId) { |
| 39 | return value.intValue() == ((PhysCellId) obj).value.intValue(); |
| 40 | } |
| 41 | return super.equals(obj); |
| 42 | } |
| 43 | } |