Merge "Add Instantiation Provider" into tosca-poc
authorLiam Fallon <liam.fallon@est.tech>
Tue, 2 Mar 2021 08:07:56 +0000 (08:07 +0000)
committerGerrit Code Review <gerrit@onap.org>
Tue, 2 Mar 2021 08:07:56 +0000 (08:07 +0000)
1  2 
tosca-controlloop/models/src/main/java/org/onap/policy/clamp/controlloop/models/controlloop/concepts/ControlLoops.java

@@@ -31,15 -31,7 +32,16 @@@ import org.onap.policy.models.base.PfUt
  @ToString
  @NoArgsConstructor
  @AllArgsConstructor
+ @EqualsAndHashCode
  public class ControlLoops {
      private List<ControlLoop> controlLoopList;
 +
 +    /**
 +     * Copy contructor, does a deep copy.
 +     *
 +     * @param otherControlLoops the other element to copy from
 +     */
 +    public ControlLoops(final ControlLoops otherControlLoops) {
 +        this.controlLoopList = PfUtils.mapList(controlLoopList, ControlLoop::new);
 +    }
  }