static Base getGenericElementSchema(int id, IdStrategy strategy)
    {
        switch (id)
        {
            case ID_BOOL:
                return strategy.ARRAY_BOOL_DERIVED_SCHEMA;
            case ID_CHAR:
                return strategy.ARRAY_CHAR_DERIVED_SCHEMA;
            case ID_SHORT:
                return strategy.ARRAY_SHORT_DERIVED_SCHEMA;
            case ID_INT32:
                return strategy.ARRAY_INT32_DERIVED_SCHEMA;
            case ID_INT64:
                return strategy.ARRAY_INT64_DERIVED_SCHEMA;
            case ID_FLOAT:
                return strategy.ARRAY_FLOAT_DERIVED_SCHEMA;
            case ID_DOUBLE:
                return strategy.ARRAY_DOUBLE_DERIVED_SCHEMA;
            case ID_STRING:
                return strategy.ARRAY_STRING_SCHEMA;
            case ID_BYTES:
                return strategy.ARRAY_BYTESTRING_SCHEMA;
            case ID_BYTE_ARRAY:
                return strategy.ARRAY_BYTEARRAY_SCHEMA;
            case ID_BIGDECIMAL:
                return strategy.ARRAY_BIGDECIMAL_SCHEMA;
            case ID_BIGINTEGER:
                return strategy.ARRAY_BIGINTEGER_SCHEMA;
            case ID_DATE:
                return strategy.ARRAY_DATE_SCHEMA;
            default:
                throw new RuntimeException("Should not happen.");
        }
    }
Built-in array schemas.

@author David Yu
@created Dec 4, 2012
protostuff-runtime/src/main/java/io/protostuff/runtime/ArraySchemas.java