2014-08-11 21:43:08 +03:00
|
|
|
package com.iluwatar;
|
|
|
|
|
2014-08-31 08:42:01 +03:00
|
|
|
/**
|
|
|
|
*
|
|
|
|
* Singleton class.
|
|
|
|
*
|
|
|
|
*/
|
2014-08-11 21:43:08 +03:00
|
|
|
public class IvoryTower {
|
|
|
|
|
2014-09-06 23:54:25 +01:00
|
|
|
private static IvoryTower instance;
|
2014-08-11 21:43:08 +03:00
|
|
|
|
2014-09-06 23:54:25 +01:00
|
|
|
private IvoryTower() {}
|
2014-08-11 21:43:08 +03:00
|
|
|
|
|
|
|
public static IvoryTower getInstance() {
|
2014-09-06 23:54:25 +01:00
|
|
|
if(instance == null){
|
2014-09-07 00:44:32 +01:00
|
|
|
instance = new IvoryTower();
|
2014-09-06 23:54:25 +01:00
|
|
|
}
|
2014-08-11 21:43:08 +03:00
|
|
|
return instance;
|
|
|
|
}
|
|
|
|
}
|