Version change for security fix
[dcaegen2/services/son-handler.git] / src / main / java / com / wipro / www / sonhms / model / CellPciPair.java
1 /*******************************************************************************
2  * ============LICENSE_START=======================================================
3  * pcims
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
10  *
11  *        http://www.apache.org/licenses/LICENSE-2.0
12  *
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  ******************************************************************************/
20
21 package com.wipro.www.sonhms.model;
22
23 import com.fasterxml.jackson.annotation.JsonProperty;
24
25 public class CellPciPair {
26     @JsonProperty("cellId")
27     private String cellId;
28
29     @JsonProperty("physicalCellId")
30     private int physicalCellId;
31
32     @Override
33     public String toString() {
34         return "CellPciPair [cellId=" + cellId + ", physicalCellId=" + physicalCellId + "]";
35     }
36
37     public CellPciPair() {
38
39     }
40
41     /**
42      * Parameterized constructor.
43      */
44     public CellPciPair(String cellId, int physicalCellId) {
45         super();
46         this.cellId = cellId;
47         this.physicalCellId = physicalCellId;
48     }
49
50     public String getCellId() {
51         return cellId;
52     }
53
54     public void setCellId(String cellId) {
55         this.cellId = cellId;
56     }
57
58     public int getPhysicalCellId() {
59         return physicalCellId;
60     }
61
62     public void setPhysicalCellId(int physicalCellId) {
63         this.physicalCellId = physicalCellId;
64     }
65
66     @Override
67     public int hashCode() {
68         final int prime = 31;
69         int result = 1;
70         result = (prime * result) + ((cellId == null) ? 0 : cellId.hashCode());
71         result = (prime * result) + physicalCellId;
72         return result;
73     }
74
75     @Override
76     public boolean equals(Object obj) {
77         if (this == obj) {
78             return true;
79
80         }
81         if (obj == null) {
82             return false;
83         }
84         if (getClass() != obj.getClass()) {
85             return false;
86         }
87         CellPciPair other = (CellPciPair) obj;
88         if (cellId == null) {
89             if (other.cellId != null) {
90                 return false;
91             }
92         } else if (!cellId.equals(other.cellId)) {
93             return false;
94         }
95         return (physicalCellId == other.physicalCellId);
96     }
97
98 }