public class SingletonImpl {
private SingletonImpl (){
}
public static SingletonImpl getInstance(){
return FullProof.SingletonImpl;
}
private static class FullProof{
private static SingletonImpl SingletonImpl = new SingletonImpl ();
}
}
0 comments:
Post a Comment