b7f9dd87daec1b6ba3f80226fe6a2ce4fc2b8260
[sdc.git] /
1 /*-
2  * ============LICENSE_START=======================================================
3  * SDC
4  * ================================================================================
5  * Copyright (C) 2019 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
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  * Modifications copyright (c) 2019 Nokia
20  * ================================================================================
21  */
22
23 package org.openecomp.sdc.generator.datatypes.tosca;
24
25 @SuppressWarnings("CheckStyle")
26 public class LicenseFlavor {
27
28   String feature_group_uuid;
29
30   public String getFeature_group_uuid() {
31     return feature_group_uuid;
32   }
33
34   public void setFeature_group_uuid(String feature_group_uuid) {
35     this.feature_group_uuid = feature_group_uuid;
36   }
37
38   @Override
39   public String toString() {
40     return "LicenseFlavor{"
41         + "feature_group_uuid='" + feature_group_uuid + '\''
42         + '}';
43   }
44
45   @Override
46   public boolean equals(Object obj) {
47     if (this == obj)
48       return true;
49     if (obj == null || getClass() != obj.getClass())
50       return false;
51     LicenseFlavor other = (LicenseFlavor) obj;
52
53       if (this.feature_group_uuid == null) {
54         if (other.feature_group_uuid != null)
55           return false;
56       } else if (!feature_group_uuid.equals(other.feature_group_uuid))
57         return false;
58
59     return true;
60   }
61
62   @Override
63   public int hashCode() {
64     return feature_group_uuid != null ? feature_group_uuid.hashCode() : 0;
65   }
66 }