public class ClassUtil extends Object
Constructor and Description |
---|
ClassUtil() |
Modifier and Type | Method and Description |
---|---|
static <T> T |
cast(Class<T> type,
Object key,
Object value) |
static <T> List<T> |
castList(Class<T> elementType,
List<?> list) |
static <T> T |
read(Map map,
Class<T> type,
Object key) |
static <T> T |
readNotNull(Map map,
Class<T> type,
Object key) |
public static <T> T read(Map map, Class<T> type, Object key) throws Exception
Exception
public static <T> T readNotNull(Map map, Class<T> type, Object key) throws Exception
Exception
public static <T> T cast(Class<T> type, Object key, Object value) throws Exception
Exception
Copyright © 2016–2021. All rights reserved.