- 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è)計實驗指導(dǎo)
- Python數(shù)據(jù)挖掘:入門、進(jìn)階與實用案例分析
- Voice Application Development for Android
- Dependency Injection with AngularJS
- MATLAB Graphics and Data Visualization Cookbook
- 視覺大數(shù)據(jù)智能分析算法實戰(zhàn)
- 數(shù)據(jù)庫查詢優(yōu)化器的藝術(shù):原理解析與SQL性能優(yōu)化
- Deep Learning with R for Beginners
- SQL Server 2008寶典(第2版)
- 智能與數(shù)據(jù)重構(gòu)世界
- MySQL性能調(diào)優(yōu)與架構(gòu)設(shè)計
- 一類智能優(yōu)化算法的改進(jìn)及應(yīng)用研究
- Kafka權(quán)威指南(第2版)
- 大數(shù)據(jù)理論與工程實踐
- SQL必知必會(第四版)