2 * Copyright © 2016-2018 European Support Limited
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 package org.openecomp.sdc.vendorsoftwareproduct.types.composition;
19 public class ComponentData implements CompositionDataEntity {
21 private String description;
22 private String displayName;
24 public String getName() {
28 public void setName(String name) {
32 public String getDescription() {
36 public void setDescription(String description) {
37 this.description = description;
40 public String getDisplayName() {
44 public void setDisplayName(String displayName) {
45 this.displayName = displayName;
49 public int hashCode() {
50 int result = name.hashCode();
51 result = 31 * result + (description != null ? description.hashCode() : 0);
52 result = 31 * result + (displayName != null ? displayName.hashCode() : 0);
57 public boolean equals(Object object) {
61 if (!(object instanceof ComponentData)) {
65 ComponentData that = (ComponentData) object;
67 if (!name.equals(that.name)) {
70 if (description != null ? !description.equals(that.description) : that.description != null) {
73 return displayName != null ? displayName.equals(that.displayName) : that.displayName == null;