private static volatile $NAME$ singleton = null;
private $NAME$() {}
public static $NAME$ getInstance() {
if (singleton == null) {
synchronized ($NAME$.class) {
if (singleton == null) {
singleton = new $NAME$();
}
}
}
return singleton;
}
private static volatile $NAME$ singleton = null;
private $NAME$() {}
public static $NAME$ getInstance() {
if (singleton == null) {
synchronized ($NAME$.class) {
if (singleton == null) {
singleton = new $NAME$();
}
}
}
return singleton;
}