aboutsummaryrefslogtreecommitdiffstats
path: root/catalog-be/src/main/java/org/openecomp/sdc/be/datamodel/ServiceRelations.java
blob: f44515e5b86fae028adb70995036e8fedb1b2182 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package org.openecomp.sdc.be.datamodel;

import java.util.Set;

public class ServiceRelations extends java.util.HashSet<NameIdPairWrapper> {

    public ServiceRelations() {
    }

    public ServiceRelations(Set<NameIdPairWrapper> relations) {
        addAll(relations);
    }

    public Set<NameIdPairWrapper> getRelations() {
        return this;
    }

    public void setRelations(Set<NameIdPairWrapper> relations) {
        clear();
        this.addAll(relations);
    }
}