X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=ONAP-REST%2Fsrc%2Fmain%2Fjava%2Forg%2Fonap%2Fpolicy%2Frest%2Fadapter%2FTerm.java;h=ce76da27f2b044d386de371aeccec6fa35faf3ae;hb=023280727ac52e777b4128d726e212c9e8abd435;hp=7188e3558b29515ec5dfd8ce995679d8b2c3da22;hpb=073cc188efe9abb4c010cf674e34e2cf46ef1c52;p=policy%2Fengine.git diff --git a/ONAP-REST/src/main/java/org/onap/policy/rest/adapter/Term.java b/ONAP-REST/src/main/java/org/onap/policy/rest/adapter/Term.java index 7188e3558..ce76da27f 100644 --- a/ONAP-REST/src/main/java/org/onap/policy/rest/adapter/Term.java +++ b/ONAP-REST/src/main/java/org/onap/policy/rest/adapter/Term.java @@ -29,23 +29,23 @@ import java.util.Set; public class Term { - - String position; - protected String ruleName; - protected List fromZones; - protected List toZones; - protected boolean negateSource; //hardcoded - protected boolean negateDestination; //hardcoded - protected List sourceList; - protected List destinationList; - protected List sourceServices; - protected Set destServices; - protected String action; - protected String description; - boolean enabled; //hardcoded - boolean log; //hardcoded - - //position + + String position; + protected String ruleName; + protected List fromZones; + protected List toZones; + protected boolean negateSource; //hardcoded + protected boolean negateDestination; //hardcoded + protected List sourceList; + protected List destinationList; + protected List sourceServices; + protected Set destServices; + protected String action; + protected String description; + boolean enabled; //hardcoded + boolean log; //hardcoded + + //position public String getPosition() { return position; } @@ -65,10 +65,10 @@ public class Term { //From Zone public List getFromZones() { - if (fromZones==null) - { - fromZones= new ArrayList(); - } + if (fromZones==null) + { + fromZones= new ArrayList<>(); + } return fromZones; } @@ -78,10 +78,10 @@ public class Term { //To Zone public List getToZones() { - if (toZones==null) - { - toZones= new ArrayList(); - } + if (toZones==null) + { + toZones= new ArrayList<>(); + } return toZones; } @@ -111,10 +111,10 @@ public class Term { //SourceList public List getSourceList() { - if(sourceList==null) - { - sourceList= new ArrayList(); - } + if(sourceList==null) + { + sourceList= new ArrayList<>(); + } return this.sourceList; } @@ -125,10 +125,10 @@ public class Term { //Destination List public List getDestinationList() { - if(destinationList==null) - { - destinationList= new ArrayList(); - } + if(destinationList==null) + { + destinationList= new ArrayList<>(); + } return this.destinationList; } @@ -138,31 +138,31 @@ public class Term { //Source Services public List getSourceServices() { - if(sourceServices==null) - { - sourceServices= new ArrayList(); - } + if(sourceServices==null) + { + sourceServices= new ArrayList<>(); + } return this.sourceServices; } public void setSourceServices(List sourceServices) { this.sourceServices = sourceServices; } - + //Destination services. public Set getDestServices() { - if(destServices==null) - { - destServices= new HashSet(); - } + if(destServices==null) + { + destServices= new HashSet<>(); + } return this.destServices; } public void setDestServices(Set destServices) { this.destServices = destServices; } - - //Action + + //Action public String getAction() { return action; }