代码拉取完成,页面将自动刷新
package DesignPattern.single;
/**
* @author 蔚蔚樱
* @version 1.0
* @date 2020-02-17 18:30
* @Email micromicrohard@outlook.com
* @description
* single pattern desing for this situation:just provider an instance for Class.
* @HungrySinglePattern creates an instance object when
* *the class is loaded, but there is no delay in loading.
* *In order to solve this problem, {@LazySinglePattren} is introduced,
* *although the load can be delayed, but the thread is unsafe.
* *In order to solve the thread security problem,
* *the synchronized keyword is introduced.
* *But there is a performance problem, more time-consuming,
* *finally , the {@inner-class} is a perfect solution.
* *
* *Attention:Experiments show that the double locks is faster
* @blogURL:
*/
public interface Singletom {
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。