70c6a580417d14ba6c411addbeb35175bb266d5e
[sdc.git] /
1 package org.openecomp.sdc.tosca.datatypes.model;
2
3 import java.util.Map;
4 import java.util.Objects;
5
6 public class OperationDefinitionType extends OperationDefinition {
7
8   private String implementation;
9   private Map<String, PropertyDefinition> inputs;
10
11   public String getImplementation() {
12     return implementation;
13   }
14
15   public void setImplementation(String implementation) {
16     this.implementation = implementation;
17   }
18
19   public Map<String, PropertyDefinition> getInputs() {
20     return inputs;
21   }
22
23   public void setInputs(
24       Map<String, PropertyDefinition> inputs) {
25     this.inputs = inputs;
26   }
27
28   @Override
29   public boolean equals(Object o) {
30     if (this == o) {
31       return true;
32     }
33     if (!(o instanceof OperationDefinitionType)) {
34       return false;
35     }
36     OperationDefinitionType that = (OperationDefinitionType) o;
37     return Objects.equals(implementation, that.implementation) &&
38         Objects.equals(inputs, that.inputs);
39   }
40
41   @Override
42   public int hashCode() {
43
44     return Objects.hash(implementation, inputs);
45   }
46 }