Add all 23 GoF design pattern implementations (2026-06-13)
This commit is contained in:
15
03-behavioral/chain-of-responsibility/Level1Support.java
Normal file
15
03-behavioral/chain-of-responsibility/Level1Support.java
Normal file
@@ -0,0 +1,15 @@
|
||||
package chain;
|
||||
|
||||
/** Handles LOW priority tickets — basic FAQ and documentation responses */
|
||||
public class Level1Support extends SupportHandler {
|
||||
|
||||
@Override
|
||||
protected boolean canHandle(SupportTicket ticket) {
|
||||
return ticket.getPriority() == SupportTicket.Priority.LOW;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void handle(SupportTicket ticket) {
|
||||
System.out.println(" [Level-1] Resolved with FAQ: " + ticket);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user