import static com.google.common.base.Preconditions.checkNotNull;
import com.google.common.collect.ImmutableList;
-
import java.util.ArrayList;
import java.util.List;
-
import org.opendaylight.groupbasedpolicy.api.sf.EtherTypeClassifierDefinition;
import org.opendaylight.groupbasedpolicy.api.sf.IpProtoClassifierDefinition;
import org.opendaylight.groupbasedpolicy.api.sf.L4ClassifierDefinition;
import org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.secgroups.rev150712.SecurityRuleAttributes;
import org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.secgroups.rev150712.security.rules.attributes.security.rules.SecurityRule;
-public class SecRuleEntityDecoder {
+public final class SecRuleEntityDecoder {
private SecRuleEntityDecoder() {
throw new UnsupportedOperationException("Cannot create an instance.");
if (twoPortMin == null && twoPortMax == null) {
return true;
}
- if ((onePortMin != null && twoPortMin != null && onePortMin >= twoPortMin)
- && (onePortMax != null && twoPortMax != null && onePortMax <= twoPortMax)) {
+ if (onePortMin != null && twoPortMin != null && onePortMin >= twoPortMin
+ && onePortMax != null && twoPortMax != null && onePortMax <= twoPortMax) {
return true;
}
return false;