mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-18 09:25:54 +00:00
Formatted all files to the same standard
This commit is contained in:
@@ -3,22 +3,22 @@ package com.iluwatar;
|
||||
/**
|
||||
*
|
||||
* Makes requests that are handled by the chain.
|
||||
*
|
||||
*
|
||||
*/
|
||||
public class OrcKing {
|
||||
|
||||
RequestHandler chain;
|
||||
|
||||
|
||||
public OrcKing() {
|
||||
buildChain();
|
||||
}
|
||||
|
||||
|
||||
private void buildChain() {
|
||||
chain = new OrcCommander(new OrcOfficer(new OrcSoldier(null)));
|
||||
}
|
||||
|
||||
|
||||
public void makeRequest(Request req) {
|
||||
chain.handleRequest(req);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user