public class Singleton extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static Singleton |
uniqueInstance |
Modifier | Constructor and Description |
---|---|
private |
Singleton() |
Modifier and Type | Method and Description |
---|---|
static Singleton |
getInstance() |
private static volatile Singleton uniqueInstance
private Singleton()
public static Singleton getInstance()