Live Templates

@bingoogolapple 2017-11-24 05:15:31发表于 bingoogolapple/bingoogolapple.github.io 工具软件开发环境

  • 添加 BGA 组
    image
  • 单例模式-静态内部类
    image
private $CLASS$() {
    $END$
}

private static class SingletonHolder {
    private static final $CLASS$ INSTANCE = new $CLASS$();
}

public static $CLASS$ getInstance() {
    return SingletonHolder.INSTANCE;
}