- 博客(5)
- 收藏
- 关注
原创 数字类型转中文大写工具类
public class CurrencyUtils { public CurrencyUtils() { } public static String numToStr(int num) { String[] chinese = new String[]{"", "十", "百", "千", "万", "十", "百", "千", "亿", "十", "百", "千", "万"}; String[] numChinese = new String.
2022-01-05 09:47:37
183
转载 列表参数校验工具
import lombok.Data; import javax.validation.Valid; import java.util.*; /** * 列表参数校验工具. * * @author ssht */ @Data public class ValidList<E> implements List<E>{ @Valid private List<E> list = new ArrayList<>(); @..
2022-01-04 15:55:48
182
原创 两个List对象集合同字段互转工具
import com.ssht.common.utils.bean.BeanUtils; import java.util.ArrayList; import java.util.List; public class ConvertUtils { public static <T, E> E convert(T source, Class<E> targetClass) { E target = null; try { ..
2022-01-04 15:54:33
347
原创 个人实用java 常用语句(工作笔记)
//String转Long: long l = Long.valueOf("123").longValue(); //根据某个实体属性去重 List<NewsTagsResponse> collect1 = n.stream().filter(distinctByKey((p) -> (p.getPlantName()))).collect(Collectors.toList()); System.out.println(collect1); //根据多个实体属性去重 Lis
2021-12-06 14:52:55
1355
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅