blob: 591e94ee1d0338f22035648419ec730af4e0c634 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
package org.openecomp.sdc.tosca.datatypes.model;
import java.util.Map;
public class OperationDefinition {
private String description;
private String implementation;
private Map<String, PropertyDefinition> inputs;
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public String getImplementation() {
return implementation;
}
public void setImplementation(String implementation) {
this.implementation = implementation;
}
public Map<String, PropertyDefinition> getInputs() {
return inputs;
}
public void setInputs(
Map<String, PropertyDefinition> inputs) {
this.inputs = inputs;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (!(o instanceof OperationDefinition)) {
return false;
}
OperationDefinition that = (OperationDefinition) o;
if (getDescription() != null ? !getDescription().equals(that.getDescription())
: that.getDescription() != null) {
return false;
}
if (getImplementation() != null ? !getImplementation().equals(that.getImplementation())
: that.getImplementation() != null) {
return false;
}
return getInputs() != null ? getInputs().equals(that.getInputs()) : that.getInputs() == null;
}
@Override
public int hashCode() {
int result = getDescription() != null ? getDescription().hashCode() : 0;
result = 31 * result + (getImplementation() != null ? getImplementation().hashCode() : 0);
result = 31 * result + (getInputs() != null ? getInputs().hashCode() : 0);
return result;
}
}
|