Get a value from a Map and convert to the specified type @param map Source map @param key The key @param Target type @return The converted value
(Map<String, Object> map, String key)
| 253 | * @return The converted value |
| 254 | */ |
| 255 | @SuppressWarnings("unchecked") |
| 256 | public static <T> T get(Map<String, Object> map, String key) { |
| 257 | return map == null || key == null ? null : (T) map.get(key); |
| 258 | } |
| 259 | |
| 260 | /** |
| 261 | * Get a value from a Map and convert to the specified type |
no test coverage detected