public class Convert extends Object
描述:暂无描述信息
创建时间:2021-09-22 11:25
更新时间:暂无
| 构造器和说明 |
|---|
Convert() |
| 限定符和类型 | 方法和说明 |
|---|---|
static <K,V> List<V> |
fetchByKey(K[] keys,
Map<K,V> values) |
static <K,V> List<V> |
fetchByKey(List<K> keys,
Map<K,V> values) |
static <T> T |
fetchFirst(Collection<T> list) |
static <T> T |
fuse(T self,
T target)
融合,把目标对象中的非空字段赋值到自身中
|
static Double |
max(Double... nums) |
static Integer |
max(Integer... nums) |
static Long |
max(Long... nums) |
static <E extends Serializable> |
merge(E[] e1,
E[] e2,
Class<E> type) |
static <E extends Serializable> |
mergeWithoutDuplication(E[] e1,
E[] e2,
Class<E> type) |
static Double |
min(Double... nums) |
static Integer |
min(Integer... nums) |
static Long |
min(Long... nums) |
static BigDecimal |
toBigDecimal(Object obj) |
static Boolean |
toBoolean(Object obj) |
static Byte |
toByte(Object obj) |
static Double |
toDouble(Object obj) |
static Integer |
toInt(Object obj) |
static Long |
toLong(Object obj) |
static Short |
toShort(Object obj) |
static String |
toStr(byte[] bytes) |
static String |
toStr(Object obj) |
public static String toStr(byte[] bytes)
public static BigDecimal toBigDecimal(Object obj)
obj - public static <E extends Serializable> E[] merge(E[] e1, E[] e2, Class<E> type)
public static <E extends Serializable> E[] mergeWithoutDuplication(E[] e1, E[] e2, Class<E> type)
public static <T> T fuse(T self,
T target)
self - 自身target - 目标对象public static <T> T fetchFirst(Collection<T> list)
Copyright © 2022. All rights reserved.