blob: 2f9c1d47c2af80b71679eb0dba26332126a245f3 (
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
|
package org.openecomp.sdc.ci.tests.tosca.datatypes;
import java.io.Serializable;
import java.util.List;
public class VfModuleDefinition extends ToscaGroupsTopologyTemplateDefinition implements Serializable {
private List<String> artifacts;
public static final long serialVersionUID = -6373756459967949586L;
public List<String> getArtifacts() {
return artifacts;
}
public void setArtifacts(List<String> artifacts) {
this.artifacts = artifacts;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (!(o instanceof VfModuleDefinition)) return false;
if (!super.equals(o)) return false;
VfModuleDefinition that = (VfModuleDefinition) o;
return artifacts != null ? artifacts.containsAll(that.artifacts) : that.artifacts == null;
}
@Override
public int hashCode() {
int result = super.hashCode();
result = 31 * result + (artifacts != null ? artifacts.hashCode() : 0);
return result;
}
}
|