re base code
[sdc.git] / catalog-be / src / main / java / org / openecomp / sdc / be / datamodel / ServiceRelations.java
1 package org.openecomp.sdc.be.datamodel;
2
3 import java.util.Set;
4
5 public class ServiceRelations extends java.util.HashSet<NameIdPairWrapper> {
6
7     public ServiceRelations() {
8     }
9
10     public ServiceRelations(Set<NameIdPairWrapper> relations) {
11         addAll(relations);
12     }
13
14     public Set<NameIdPairWrapper> getRelations() {
15         return this;
16     }
17
18     public void setRelations(Set<NameIdPairWrapper> relations) {
19         clear();
20         this.addAll(relations);
21     }
22 }