X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fforwardingrulesmanager%2Fapi%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fforwardingrulesmanager%2FPortGroupConfig.java;h=d0878f982cda5d10142375dca91fa2f3380546ef;hb=fe5ef8066b0dd57df46e5b8806020ceb41716efb;hp=c634426d433578bed1e5c7e8d9fa3049e8a10ae7;hpb=cc5814b25b247f5ffe0c17ede1850e71ca06eee6;p=controller.git diff --git a/opendaylight/forwardingrulesmanager/api/src/main/java/org/opendaylight/controller/forwardingrulesmanager/PortGroupConfig.java b/opendaylight/forwardingrulesmanager/api/src/main/java/org/opendaylight/controller/forwardingrulesmanager/PortGroupConfig.java index c634426d43..d0878f982c 100644 --- a/opendaylight/forwardingrulesmanager/api/src/main/java/org/opendaylight/controller/forwardingrulesmanager/PortGroupConfig.java +++ b/opendaylight/forwardingrulesmanager/api/src/main/java/org/opendaylight/controller/forwardingrulesmanager/PortGroupConfig.java @@ -13,6 +13,8 @@ import java.lang.reflect.Field; import java.util.ArrayList; import java.util.List; +import org.opendaylight.controller.configuration.ConfigurationObject; + /** * PortGroupConfig class represents the User's Configuration with a Opaque * Regular Expression String that is parsed and handled by PortGroupProvider. @@ -23,7 +25,7 @@ import java.util.List; * * */ -public class PortGroupConfig implements Serializable { +public class PortGroupConfig extends ConfigurationObject implements Serializable { private static final long serialVersionUID = 1L; private static final String prettyFields[] = { "Name", "Match Criteria" }; @@ -136,23 +138,30 @@ public class PortGroupConfig implements Serializable { @Override public boolean equals(Object obj) { - if (this == obj) + if (this == obj) { return true; - if (obj == null) + } + if (obj == null) { return false; - if (getClass() != obj.getClass()) + } + if (getClass() != obj.getClass()) { return false; + } PortGroupConfig other = (PortGroupConfig) obj; if (matchString == null) { - if (other.matchString != null) + if (other.matchString != null) { return false; - } else if (!matchString.equals(other.matchString)) + } + } else if (!matchString.equals(other.matchString)) { return false; + } if (name == null) { - if (other.name != null) + if (other.name != null) { return false; - } else if (!name.equals(other.name)) + } + } else if (!name.equals(other.name)) { return false; + } return true; }