package org.opendaylight.lispflowmapping.lisp.serializer.address;
import java.nio.ByteBuffer;
-
import org.opendaylight.lispflowmapping.lisp.type.LispCanonicalAddressFormatEnum;
import org.opendaylight.lispflowmapping.lisp.util.ByteUtil;
import org.opendaylight.lispflowmapping.lisp.util.NumberUtil;
* @author Lorand Jakab
*
*/
-public class ServicePathSerializer extends LcafSerializer {
+public final class ServicePathSerializer extends LcafSerializer {
private static final ServicePathSerializer INSTANCE = new ServicePathSerializer();
* @author Lorand Jakab
*
*/
-public final class Constants {
- public static final int INET6_ADDRSTRLEN = 46;
+public interface Constants {
+ int INET6_ADDRSTRLEN = 46;
// TODO Move constants from other files that don't clearly belong there into this file.
}
* @author Lorand Jakab
*
*/
-public class Stringifier {
+public final class Stringifier {
private static final String NEW_LINE = System.lineSeparator();
+ private Stringifier() {
+ }
+
public static String getSpacesAsString(int length) {
return new String(new char[length]).replace("\0", " ");
}