de1f5516317e9dce07c1ad31ca2b59cec491f3e7
[sdc.git] /
1 package org.onap.sdc.tosca.datatypes.model;
2
3 import java.util.Objects;
4
5 public class OperationDefinition implements Cloneable {
6
7     protected String description;
8
9     public String getDescription() {
10         return description;
11     }
12
13     public void setDescription(String description) {
14         this.description = description;
15     }
16
17     @Override
18     public boolean equals(Object o) {
19         if (this == o) {
20             return true;
21         }
22         if (!(o instanceof OperationDefinition)) {
23             return false;
24         }
25         OperationDefinition that = (OperationDefinition) o;
26         return Objects.equals(description, that.description);
27     }
28
29     @Override
30     public int hashCode() {
31
32         return Objects.hash(description);
33     }
34
35     @Override
36     public OperationDefinition clone() {
37         OperationDefinition operationDefinition = new OperationDefinition();
38         operationDefinition.setDescription(this.getDescription());
39         return operationDefinition;
40     }
41 }