摘要: /** * A class implements the <code>Cloneable</code> interface to * indicate to the {@link java.lang.Object#clone()} method that it * is legal for that 阅读全文
posted @ 2023-07-24 19:05 IT知识生产小店铺 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 定义:构造器是通过方法分离的形式传入参数,最后一步调用build()返回生成构造的对象。 我自定义了一个构造一个屋子的构造器,它能灵活根据需求生成属性。 /** * 房子构造器 * Created on 2023/07/24 by Qi. */ public class HouseBuilder { 阅读全文
posted @ 2023-07-24 18:29 IT知识生产小店铺 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 实现的技术参看了hutool工具依赖包的BeanDescCache的实现方式。 技术为:枚举类+ConcurrentHashMap+泛型 效果为:线程安全的内存缓存,可以防止多次创建对象导致的性能问题。 BeanDescCache对象为: package cn.hutool.core.bean; i 阅读全文
posted @ 2023-07-24 14:35 IT知识生产小店铺 阅读(12) 评论(0) 推荐(0) 编辑
摘要: 我使用2021.3.3版本的IDEA,2023年7月24号过期了,网上的很多激活码都不能用,而且技术派的2023.4月更新的激活码也无效(报异常:we could not validate you license fdxl1y2811) 弄了1小时,终于找到一个网站【最新IDEA激活码】IDEA破解 阅读全文
posted @ 2023-07-24 14:01 IT知识生产小店铺 阅读(3274) 评论(0) 推荐(0) 编辑