public static String getAsFormattedString ( Map < String , Object > map , String strKey , Class < ? > classData , Object objDefault ) { Object objData = map . get ( strKey ) ; try { return Converter . formatObjectToString ( objData , classData , objDefault ) ; } catch ( Exception ex ) { return null ; } }
Get this item from the map and convert it to the target class . Convert this object to an formatted string .