cb79691b21ad69843368aa30d52f912b50dfd57b
[sdc.git] /
1 /*
2  * Copyright © 2016-2018 European Support Limited
3  *
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
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
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.
15  */
16 package org.openecomp.sdc.tosca.datatypes.model;
17
18 import java.util.List;
19 import java.util.Objects;
20
21
22 public class Implementation {
23
24   private String primary;
25   private List<String> dependencies;
26
27   public String getPrimary() {
28     return primary;
29   }
30
31   public void setPrimary(String primary) {
32     this.primary = primary;
33   }
34
35   public List<String> getDependencies() {
36     return dependencies;
37   }
38
39   public void setDependencies(List<String> dependencies) {
40     this.dependencies = dependencies;
41   }
42
43   @Override
44   public boolean equals(Object o) {
45     if (this == o) {
46       return true;
47     }
48     if (!(o instanceof Implementation)) {
49       return false;
50     }
51     Implementation that = (Implementation) o;
52     return Objects.equals(primary, that.primary) &&
53         Objects.equals(dependencies, that.dependencies);
54   }
55
56   @Override
57   public int hashCode() {
58
59     return Objects.hash(primary, dependencies);
60   }
61 }