2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
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=========================================================
21 package org.openecomp.sdc.vendorsoftwareproduct.types.composition;
23 public class ComponentData implements CompositionDataEntity {
25 private String description;
26 private String displayName;
27 private String vfcCode;
29 public String getName() {
33 public void setName(String name) {
37 public String getDescription() {
41 public void setDescription(String description) {
42 this.description = description;
45 public String getDisplayName() {
49 public void setDisplayName(String displayName) {
50 this.displayName = displayName;
54 public int hashCode() {
55 int result = name.hashCode();
56 result = 31 * result + (description != null ? description.hashCode() : 0);
57 result = 31 * result + (displayName != null ? displayName.hashCode() : 0);
62 public boolean equals(Object object) {
66 if (!(object instanceof ComponentData)) {
70 ComponentData that = (ComponentData) object;
72 if (!name.equals(that.name)) {
75 if (description != null ? !description.equals(that.description) : that.description != null) {
78 return displayName != null ? displayName.equals(that.displayName) : that.displayName == null;
82 public String getVfcCode() {
86 public void setVfcCode(String vfcCode) {
87 this.vfcCode = vfcCode;