@Override
    public int compareTo(AnnotationType annotationType) {
        if (annotationType == null) {
            return 1;
        }
        if (id < annotationType.id) {
            return -1;
        } else if (id > annotationType.id) {
            return 1;
        }
        return 0;
    }
WARNING! Only to be used by the configuration system and in unit tests. Not to be used in production code.

@param type the type to inherit from
document/src/main/java/com/yahoo/document/annotation/AnnotationType.java