1 /*******************************************************************************
2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2018 Wipro Limited.
6 * ==============================================================================
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 * ============LICENSE_END=========================================================
19 ******************************************************************************/
21 package com.wipro.www.sonhms.model;
23 import com.fasterxml.jackson.annotation.JsonProperty;
25 public class CellPciPair {
26 @JsonProperty("cellId")
27 private String cellId;
29 @JsonProperty("physicalCellId")
30 private int physicalCellId;
33 public String toString() {
34 return "CellPciPair [cellId=" + cellId + ", physicalCellId=" + physicalCellId + "]";
37 public CellPciPair() {
42 * Parameterized constructor.
44 public CellPciPair(String cellId, int physicalCellId) {
47 this.physicalCellId = physicalCellId;
50 public String getCellId() {
54 public void setCellId(String cellId) {
58 public int getPhysicalCellId() {
59 return physicalCellId;
62 public void setPhysicalCellId(int physicalCellId) {
63 this.physicalCellId = physicalCellId;
67 public int hashCode() {
70 result = (prime * result) + ((cellId == null) ? 0 : cellId.hashCode());
71 result = (prime * result) + physicalCellId;
76 public boolean equals(Object obj) {
84 if (getClass() != obj.getClass()) {
87 CellPciPair other = (CellPciPair) obj;
89 if (other.cellId != null) {
92 } else if (!cellId.equals(other.cellId)) {
95 return (physicalCellId == other.physicalCellId);