package io.fd.honeycomb.v3po.impl;
+import com.google.common.base.Splitter;
import java.util.Collection;
import org.opendaylight.controller.md.sal.binding.api.DataBroker;
import org.opendaylight.controller.md.sal.binding.api.DataObjectModification;
public class VppIetfInterfaceListener implements DataTreeChangeListener<Interface>, AutoCloseable {
private static final Logger LOG = LoggerFactory.getLogger(VppIetfInterfaceListener.class);
+ private static final Splitter DOT_SPLITTER = Splitter.on('.');
private final ListenerRegistration<VppIetfInterfaceListener> registration;
private final DataBroker db;
int result = 0;
// iterate over each octet
- for (String part : address.split("\\.")) {
+ for (String part : DOT_SPLITTER.split(address)) {
// shift the previously parsed bits over by 1 byte
result = result << 8;
// set the low order bits to the current octet