We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3634b33 commit 933c84fCopy full SHA for 933c84f
abstract-factory/src/main/java/com/iluwatar/abstractfactory/App.java
@@ -95,17 +95,20 @@ private void setArmy(final Army army) {
95
this.army = army;
96
}
97
98
+ /**
99
+ * The factory of kingdom factories.
100
+ */
101
public static class FactoryMaker {
102
- private FactoryMaker() {
- }
-
103
104
+ * Enumeration for the different types of Kingdoms.
105
106
public enum KingdomType {
107
ELF, ORC
108
109
110
/**
- * The factory of kingdom factories.
111
+ * The factory method to create KingdomFactory concrete objects.
112
*/
113
public static KingdomFactory makeFactory(KingdomType type) {
114
switch (type) {
0 commit comments