/**
* The MIT License
* Copyright (c) 2014-2016 Ilkka Seppälä
* <p>
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
* <p>
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
* <p>
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
package com.iluwatar.singleton; /**
* Singleton class. Eagerly initialized static instance guarantees thread safety.
*/
public final class IvoryTower { /**
* Private constructor so nobody can instantiate the class.
*/
private IvoryTower() {
} /**
* Static to class instance of the class.
*/
private static final IvoryTower INSTANCE = new IvoryTower(); /**
* To be called by user to obtain instance of the class.
*
* @return instance of the singleton.
*/
public static IvoryTower getInstance() {
return INSTANCE;
} }

最新文章

  1. LINQ to SQL语句(19)之ADO.NET与LINQ to SQL
  2. 创业公司招php商城开发者
  3. 时间戳 时区 java mysql
  4. Winform文件下载之WebClient
  5. 国内大学毕业论文 LaTeX 模板集合
  6. 使用weave实现跨主机docker容器互联
  7. HTML特殊符号对照表(转)
  8. python学习_应用pickle模块封装和拆封数据对象
  9. PHP获取客户端和服务器端IP
  10. bzoj2597: [Wc2007]剪刀石头布
  11. JavaScript网页制作特效
  12. 解决myeclipse10.1导出War包出错:Security Alert:Integrity check error
  13. 201621123040《Java程序设计》第3周学习总结
  14. vue前端面试题知识点整理
  15. lvm再次学习
  16. 6.2 小表驱动大表(exists的应用)
  17. 日志监控工具安装:windows上安装elk
  18. ios优秀的第三方框架
  19. Mysql优化_内置profiling性能分析工具
  20. POJ 1142:Smith Numbers(分解质因数)

热门文章

  1. XAMPP启动Apache服务时启动失败
  2. 阿里云轻量级服务器和NGINX部署Django项目
  3. javaWeb下载
  4. 安装pip的三种方式
  5. 题解 [51nod1753] 相似子串
  6. 最短路--SPFA及其优化
  7. VS下字符串与数组互相装换
  8. 将Eclipse,MyEclipse等编辑器的项目管理框颜色改为护眼豆沙绿的方法
  9. [linux]ubuntu修改镜像源
  10. cesium地下模式(地表透明)3