1 package org.openecomp.sdc.tosca.datatypes.model;
5 public class OperationDefinition {
7 private String description;
8 private String implementation;
9 private Map<String, PropertyDefinition> inputs;
11 public String getDescription() {
15 public void setDescription(String description) {
16 this.description = description;
19 public String getImplementation() {
20 return implementation;
23 public void setImplementation(String implementation) {
24 this.implementation = implementation;
27 public Map<String, PropertyDefinition> getInputs() {
31 public void setInputs(
32 Map<String, PropertyDefinition> inputs) {
37 public boolean equals(Object o) {
41 if (!(o instanceof OperationDefinition)) {
45 OperationDefinition that = (OperationDefinition) o;
47 if (getDescription() != null ? !getDescription().equals(that.getDescription())
48 : that.getDescription() != null) {
51 if (getImplementation() != null ? !getImplementation().equals(that.getImplementation())
52 : that.getImplementation() != null) {
55 return getInputs() != null ? getInputs().equals(that.getInputs()) : that.getInputs() == null;
59 public int hashCode() {
60 int result = getDescription() != null ? getDescription().hashCode() : 0;
61 result = 31 * result + (getImplementation() != null ? getImplementation().hashCode() : 0);
62 result = 31 * result + (getInputs() != null ? getInputs().hashCode() : 0);