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 1cdb593 commit 6b843f0Copy full SHA for 6b843f0
chain/src/main/java/com/iluwatar/App.java
@@ -1,5 +1,13 @@
1
package com.iluwatar;
2
3
+/**
4
+ *
5
+ * Chain of Responsibility organizes request handlers (RequestHandler) into
6
+ * a chain where each handler has a chance to act on the request on its
7
+ * turn. In this example the king (OrcKing) makes requests and the military
8
+ * orcs (OrcCommander, OrcOfficer, OrcSoldier) form the handler chain.
9
10
+ */
11
public class App
12
{
13
public static void main( String[] args )
chain/src/main/java/com/iluwatar/OrcKing.java
@@ -1,5 +1,10 @@
+ * Makes requests that are handled by the chain.
public class OrcKing {
RequestHandler chain;
0 commit comments