All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.vertexium.util.KeyUtils Maven / Gradle / Ivy

There is a newer version: 4.10.0
Show newest version
package org.vertexium.util;

import org.vertexium.VertexiumException;

public class KeyUtils {
    public static final char VALUE_SEPARATOR = '\u001f';

    public static void checkKey(String key, String message) {
        if (key != null && key.indexOf(VALUE_SEPARATOR) >= 0) {
            throw new VertexiumException(String.format("%s. Cannot contain 0x%04x. key: %s", message, (byte) VALUE_SEPARATOR, key));
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy