Merge "Fix and improvement for MsoBusinessLogic tests"
[vid.git] / vid-app-common / src / main / java / org / onap / vid / category / CategoryParameterOptionRep.java
1 package org.onap.vid.category;
2
3 /*-
4  * ============LICENSE_START=======================================================
5  * VID
6  * ================================================================================
7  * Copyright © 2018 AT&T Intellectual Property. All rights reserved.
8  * ================================================================================
9  * Modifications Copyright 2018 Nokia
10  * ================================================================================
11  * Licensed under the Apache License, Version 2.0 (the "License");
12  * you may not use this file except in compliance with the License.
13  * You may obtain a copy of the License at
14  *
15  *      http://www.apache.org/licenses/LICENSE-2.0
16  *
17  * Unless required by applicable law or agreed to in writing, software
18  * distributed under the License is distributed on an "AS IS" BASIS,
19  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20  * See the License for the specific language governing permissions and
21  * limitations under the License.
22  * ============LICENSE_END=========================================================
23  */
24
25 import java.util.Objects;
26
27 public class CategoryParameterOptionRep {
28
29     private String id;
30     private String name;
31
32     public CategoryParameterOptionRep() {
33     }
34
35     public CategoryParameterOptionRep(String id, String name) {
36         this.id = id;
37         this.name = name;
38     }
39
40     public String getId() {
41         return id;
42     }
43
44     public void setId(String id) {
45         this.id = id;
46     }
47
48     public String getName() {
49         return name;
50     }
51
52     public void setName(String name) {
53         this.name = name;
54     }
55
56     @Override
57     public boolean equals(Object o) {
58         if (this == o) return true;
59         if (o == null || this.getClass() != o.getClass()) return false;
60         CategoryParameterOptionRep that = (CategoryParameterOptionRep) o;
61         return Objects.equals(this.id, that.id) &&
62                 Objects.equals(this.name, that.name);
63     }
64
65     @Override
66     public int hashCode() {
67         return Objects.hash(this.id, this.name);
68     }
69 }