@ Override public Object put ( String key , Object val ) { val = val != null && val instanceof Number ? Number . class . cast ( val ) . intValue ( ) : val ; return super . put ( key , val ) ; }
a ctor that allows passing a map .