区块内研社千倍收益实操之NFT项目方培训
// 双锁检测,在工作中上述两种情况就能够满足了
public static World getInstance() {
if (SINGLETON_WORLD == null) {
synchronized (World.class) {
if (SINGLETON_WORLD == null) {
SINGLETON_WORLD = new World();
}
}
}
return SINGLETON_WORLD;
}
private World() {
}