File tree Expand file tree Collapse file tree 4 files changed +14
-5
lines changed
main/java/com/iluwatar/multiton
test/java/com/iluwatar/multiton Expand file tree Collapse file tree 4 files changed +14
-5
lines changed Original file line number Diff line number Diff line change 66 * accessible object the Multiton pattern defines many globally
77 * accessible objects. The client asks for the correct instance
88 * from the Multiton by passing an enumeration as parameter.
9- *
10- * In this example Nazgul is the Multiton and we can ask single
11- * Nazgul from it using NazgulName. The Nazguls are statically
9+ * <p>
10+ * In this example {@link Nazgul} is the Multiton and we can ask single
11+ * {@link Nazgul} from it using {@link NazgulName} . The {@link Nazgul}s are statically
1212 * initialized and stored in concurrent hash map.
1313 *
1414 */
1515public class App {
1616
17+ /**
18+ * Program entry point
19+ * @param args command line args
20+ */
1721 public static void main ( String [] args ) {
1822 System .out .println ("KHAMUL=" + Nazgul .getInstance (NazgulName .KHAMUL ));
1923 System .out .println ("MURAZOR=" + Nazgul .getInstance (NazgulName .MURAZOR ));
Original file line number Diff line number Diff line change 66/**
77 *
88 * Nazgul is a Multiton class. Nazgul instances can be queried
9- * using getInstance() method.
9+ * using {@link # getInstance} method.
1010 *
1111 */
1212public class Nazgul {
Original file line number Diff line number Diff line change 22
33/**
44 *
5- * Each Nazgul has different NazgulName.
5+ * Each Nazgul has different {@link NazgulName} .
66 *
77 */
88public enum NazgulName {
Original file line number Diff line number Diff line change 44
55import com .iluwatar .multiton .App ;
66
7+ /**
8+ *
9+ * Application test
10+ *
11+ */
712public class AppTest {
813
914 @ Test
You can’t perform that action at this time.
0 commit comments