- Hands-On Design Patterns with Java
- Dr. Edward Lavieri
- 64字
- 2021-06-24 14:58:03
University email handler interface
The UniversityEmailHandler interface has two methods. The first method, setNextEmailHandler(), accepts a UniversityEmailHandler argument, which will be the next handler in the chain of authority. The second method, processEmailHandler(), is used if the email is processed by the current handler:
public interface UniversityEmailHandler {
public void setNextEmailHandler(UniversityEmailHandler emailHandler);
public void processEmailHandler(String emailText);
}
The preceding code explains the handler interface.
推薦閱讀
- 在你身邊為你設(shè)計(jì)Ⅲ:騰訊服務(wù)設(shè)計(jì)思維與實(shí)戰(zhàn)
- 數(shù)據(jù)分析實(shí)戰(zhàn):基于EXCEL和SPSS系列工具的實(shí)踐
- 數(shù)據(jù)挖掘原理與實(shí)踐
- Developing Mobile Games with Moai SDK
- SQL查詢:從入門到實(shí)踐(第4版)
- 數(shù)據(jù)庫系統(tǒng)原理及應(yīng)用教程(第4版)
- 智能數(shù)據(jù)時(shí)代:企業(yè)大數(shù)據(jù)戰(zhàn)略與實(shí)戰(zhàn)
- 大數(shù)據(jù)技術(shù)入門
- Flutter Projects
- INSTANT Apple iBooks How-to
- 數(shù)據(jù)修復(fù)技術(shù)與典型實(shí)例實(shí)戰(zhàn)詳解(第2版)
- 計(jì)算機(jī)視覺
- Access數(shù)據(jù)庫開發(fā)從入門到精通
- Unity Game Development Blueprints
- 大數(shù)據(jù)測(cè)試技術(shù):數(shù)據(jù)采集、分析與測(cè)試實(shí)踐(在線實(shí)驗(yàn)+在線自測(cè))