We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f2d8546 commit dce1b3cCopy full SHA for dce1b3c
1 file changed
singleton/src/main/java/com/iluwatar/singleton/IvoryTower.java
@@ -24,7 +24,10 @@
24
*/
25
package com.iluwatar.singleton;
26
27
-/** Singleton class. Eagerly initialized static instance guarantees thread safety. */
+/**
28
+ * Singleton class. Eagerly initialized static instance guarantees thread
29
+ * safety.
30
+ */
31
public final class IvoryTower {
32
33
/** Private constructor so nobody can instantiate the class. */
@@ -43,6 +46,11 @@ private IvoryTower() {
43
46
*
44
47
* @return instance of the singleton.
45
48
49
+
50
+ /**
51
+ * Returns the single instance of IvoryTower.
52
+ * Ensures that only one instance exists throughout the application.
53
54
public static IvoryTower getInstance() {
55
return INSTANCE;
56
}
0 commit comments