protected void initWithWrapperTypArray ( ) { // =========== wrapper array type ============== transformers . put ( Boolean [ ] . class , new Transformer ( ) { @ Override public SFSDataWrapper transform ( Object value ) { return new SFSDataWrapper ( SFSDataType . BOOL_ARRAY , wrapperArrayToCollection ( ( Boolean [ ] ) value ) ) ; } } ) ; transformers . put ( Byte [ ] . class , new Transformer ( ) { @ Override public SFSDataWrapper transform ( Object value ) { return new SFSDataWrapper ( SFSDataType . BYTE_ARRAY , toPrimitiveByteArray ( ( Byte [ ] ) value ) ) ; } } ) ; transformers . put ( Character [ ] . class , new Transformer ( ) { @ Override public SFSDataWrapper transform ( Object value ) { return new SFSDataWrapper ( SFSDataType . BYTE_ARRAY , charWrapperArrayToPrimitiveByteArray ( ( Character [ ] ) value ) ) ; } } ) ; transformers . put ( Double [ ] . class , new Transformer ( ) { @ Override public SFSDataWrapper transform ( Object value ) { return new SFSDataWrapper ( SFSDataType . DOUBLE_ARRAY , wrapperArrayToCollection ( ( Double [ ] ) value ) ) ; } } ) ; transformers . put ( Float [ ] . class , new Transformer ( ) { @ Override public SFSDataWrapper transform ( Object value ) { return new SFSDataWrapper ( SFSDataType . FLOAT_ARRAY , wrapperArrayToCollection ( ( Float [ ] ) value ) ) ; } } ) ; transformers . put ( Integer [ ] . class , new Transformer ( ) { @ Override public SFSDataWrapper transform ( Object value ) { return new SFSDataWrapper ( SFSDataType . INT_ARRAY , wrapperArrayToCollection ( ( Integer [ ] ) value ) ) ; } } ) ; transformers . put ( Long [ ] . class , new Transformer ( ) { @ Override public SFSDataWrapper transform ( Object value ) { return new SFSDataWrapper ( SFSDataType . LONG_ARRAY , wrapperArrayToCollection ( ( Long [ ] ) value ) ) ; } } ) ; transformers . put ( Short [ ] . class , new Transformer ( ) { @ Override public SFSDataWrapper transform ( Object value ) { return new SFSDataWrapper ( SFSDataType . SHORT_ARRAY , wrapperArrayToCollection ( ( Short [ ] ) value ) ) ; } } ) ; }
Add transformers of array of wrapper values to the map