static int number(String name)
    {
        if (name.length() != 1)
            return 0;

        switch (name.charAt(0))
        {
            case 'b':
                return ID_ARRAY_DIMENSION;
            case 'r':
                return ID_CLASS;
            case 's':
                return ID_CLASS_MAPPED;
            case 't':
                return ID_CLASS_ARRAY;
            case 'u':
                return ID_CLASS_ARRAY_MAPPED;
            default:
                return 0;
        }
    }
Used when a field is declared as {@code Class<?>} (with or with-out generics).

@author David Yu
@created Apr 25, 2012
protostuff-runtime/src/main/java/io/protostuff/runtime/ClassSchema.java