diff options
Diffstat (limited to 'common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/Implementation.java')
-rw-r--r-- | common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/Implementation.java | 42 |
1 files changed, 8 insertions, 34 deletions
diff --git a/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/Implementation.java b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/Implementation.java index 6e05e39c18..63ce0630f5 100644 --- a/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/Implementation.java +++ b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/Implementation.java @@ -17,47 +17,21 @@ package org.onap.sdc.tosca.datatypes.model; import java.util.List; -import java.util.Objects; +import lombok.EqualsAndHashCode; +import lombok.Getter; +import lombok.NoArgsConstructor; +import lombok.Setter; import org.onap.sdc.tosca.services.DataModelCloneUtil; +@Getter +@Setter +@NoArgsConstructor +@EqualsAndHashCode public class Implementation implements Cloneable { private String primary; private List<String> dependencies; - public String getPrimary() { - return primary; - } - - public void setPrimary(String primary) { - this.primary = primary; - } - - public List<String> getDependencies() { - return dependencies; - } - - public void setDependencies(List<String> dependencies) { - this.dependencies = dependencies; - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof Implementation)) { - return false; - } - Implementation that = (Implementation) o; - return Objects.equals(primary, that.primary) && Objects.equals(dependencies, that.dependencies); - } - - @Override - public int hashCode() { - return Objects.hash(primary, dependencies); - } - @Override public Implementation clone() { Implementation implementation = new Implementation(); |