![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
工具
狂野弘仁
这个作者很懒,什么都没留下…
展开
-
java jdk 8 新功能 stream实现各种list操作
首先定义1个Apple对象:public class Apple { private Integer id; private String name; private BigDecimal money; private Integer num; public Apple(Integer id, String name, BigDecimal money, Integer num) {转载 2020-12-24 11:54:24 · 379 阅读 · 0 评论 -
java数据格式校验,邮箱,手机号,身份证,邮政编码,url
/** * 邮箱验证 */ public static final String REGEX_EMAIL = "^([a-z0-9A-Z]+[-|\\.]?)+[a-z0-9A-Z]@([a-z0-9A-Z]+(-[a-z0-9A-Z]+)?\\.)+[a-zA-Z]{2,}$"; /** * 座机验证 */ public static final String REGEX_TEL = "^\\d{3,4}-?\\d{7,9}$"; .原创 2020-12-10 17:54:58 · 734 阅读 · 0 评论 -
java多线程工具类,多线程实现
public static BlockingQueue<Runnable> queue = new ArrayBlockingQueue<>(100); // 固定为100的线程队列 public static ThreadPoolExecutor executor = new ThreadPoolExecutor(4, 30, 4, TimeUnit.HOURS, queue); /* * * 实现 Runnable 接口类 */.原创 2020-12-10 17:46:06 · 133 阅读 · 0 评论 -
java 实现深度拷深度转换Bean<->Bean
<!--dozer--> <dependency> <groupId>com.github.dozermapper</groupId> <artifactId>dozer-core</artifactId> <version>6.2.0</version> </dependency> /**原创 2020-12-10 17:44:33 · 187 阅读 · 0 评论