1 package org.onap.vid.category;
4 * ============LICENSE_START=======================================================
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
15 * http://www.apache.org/licenses/LICENSE-2.0
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=========================================================
25 import java.util.Objects;
27 public class CategoryParameterOptionRep {
32 public CategoryParameterOptionRep() {
35 public CategoryParameterOptionRep(String id, String name) {
40 public String getId() {
44 public void setId(String id) {
48 public String getName() {
52 public void setName(String name) {
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);
66 public int hashCode() {
67 return Objects.hash(this.id, this.name);