public class Singleton
{
private static final Singleton singleton = new Singleton();
private Singleton()
{
}
public static Singleton getInstance()
{
return singleton;
}
}
一个简单的单例模式
最新推荐文章于 2022-07-18 10:00:40 发布