| 限定符和类型 | 字段和说明 |
|---|---|
private static Map<Class<?>,Map<String,Method>> |
classGettersMapping |
(专用程序包) static String |
INDEX_SEPARATOR |
| 构造器和说明 |
|---|
RowUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
private static int |
calcTextConsoleLength(String s) |
private static String |
getColString(Object o,
int len) |
private static Map<String,Method> |
getSetterMethods(Class<?> aClass) |
private static boolean |
isCJK(char c) |
static void |
printPretty(List<Row> rows) |
static void |
printPretty(Row row) |
static void |
registerMapping(Class<?> clazz,
Map<String,Method> columnSetterMapping) |
static <T> T |
toEntity(Row row,
Class<T> entityClass) |
static <T> T |
toEntity(Row row,
Class<T> entityClass,
int index) |
static <T> List<T> |
toEntityList(List<Row> rows,
Class<T> entityClass) |
static <T> List<T> |
toEntityList(List<Row> rows,
Class<T> entityClass,
int index) |
static <T> T |
toObject(Row row,
Class<T> objectClass) |
static <T> T |
toObject(Row row,
Class<T> objectClass,
int index) |
static <T> List<T> |
toObjectList(List<Row> rows,
Class<T> objectClass) |
static <T> List<T> |
toObjectList(List<Row> rows,
Class<T> objectClass,
int index) |
static final String INDEX_SEPARATOR
public RowUtil()
public static <T> List<T> toObjectList(List<Row> rows, Class<T> objectClass)
public static <T> List<T> toObjectList(List<Row> rows, Class<T> objectClass, int index)
public static <T> List<T> toEntityList(List<Row> rows, Class<T> entityClass)
public static <T> List<T> toEntityList(List<Row> rows, Class<T> entityClass, int index)
public static void registerMapping(Class<?> clazz, Map<String,Method> columnSetterMapping)
public static void printPretty(Row row)
public static void printPretty(List<Row> rows)
private static String getColString(Object o, int len)
private static int calcTextConsoleLength(String s)
private static boolean isCJK(char c)
private static Map<String,Method> getSetterMethods(Class<?> aClass)
Copyright © 2023. All rights reserved.