protected void initWithWrapperType ( ) { // =========== wrapper type ============== transformers . put ( Boolean . class , new Transformer ( ) { @ Override public SFSDataWrapper transform ( Object value ) { return new SFSDataWrapper ( SFSDataType . BOOL , value ) ; } } ) ; transformers . put ( Byte . class , new Transformer ( ) { @ Override public SFSDataWrapper transform ( Object value ) { return new SFSDataWrapper ( SFSDataType . BYTE , value ) ; } } ) ; transformers . put ( Character . class , new Transformer ( ) { @ Override public SFSDataWrapper transform ( Object value ) { return new SFSDataWrapper ( SFSDataType . BYTE , ( byte ) ( ( Character ) value ) . charValue ( ) ) ; } } ) ; transformers . put ( Double . class , new Transformer ( ) { @ Override public SFSDataWrapper transform ( Object value ) { return new SFSDataWrapper ( SFSDataType . DOUBLE , value ) ; } } ) ; transformers . put ( Float . class , new Transformer ( ) { @ Override public SFSDataWrapper transform ( Object value ) { return new SFSDataWrapper ( SFSDataType . FLOAT , value ) ; } } ) ; transformers . put ( Integer . class , new Transformer ( ) { @ Override public SFSDataWrapper transform ( Object value ) { return new SFSDataWrapper ( SFSDataType . INT , value ) ; } } ) ; transformers . put ( Long . class , new Transformer ( ) { @ Override public SFSDataWrapper transform ( Object value ) { return new SFSDataWrapper ( SFSDataType . LONG , value ) ; } } ) ; transformers . put ( Short . class , new Transformer ( ) { @ Override public SFSDataWrapper transform ( Object value ) { return new SFSDataWrapper ( SFSDataType . SHORT , value ) ; } } ) ; }
Add transformers of wrapper type to the map