package com.lonton.designpatterns;
public class Singleton
{
private static final Singleton SINGLETON = new Singleton();
public static Singleton getSingleton()
{
return SINGLETON;
}
}
Singleton 单例模式
最新推荐文章于 2023-12-31 13:24:51 发布
package com.lonton.designpatterns;
public class Singleton
{
private static final Singleton SINGLETON = new Singleton();
public static Singleton getSingleton()
{
return SINGLETON;
}
}