import java.util.concurrent.atomic.LongAdder;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
-import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.ZeroBasedCounter32;
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.rib.rev180329.rib.TablesKey;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
}
/**
- * Increments counter by 1 if supported, otherwise produce a warn
+ * Increments counter by 1 if supported, otherwise produce a warn.
*
- * @param counter counter
+ * @param counter counter
* @param tablesKey tablesKey Type
*/
static void increment(@Nullable final LongAdder counter, @Nonnull TablesKey tablesKey) {
}
/**
- * Increments counter by 1 if supported, otherwise produce a warn
- * @param counter counter
+ * Increments counter by 1 if supported, otherwise produce a warn.
+ *
+ * @param counter counter
* @param tablesKey tablesKey Type
*/
static void decrement(@Nullable final LongAdder counter, @Nonnull TablesKey tablesKey) {
}
LOG.warn("Family {} not supported", tablesKey);
}
-
- public static ZeroBasedCounter32 toZeroBasedCounter32(final LongAdder longAdder){
- return new ZeroBasedCounter32(longAdder.longValue());
- }
}