April 2019
Intermediate to advanced
360 pages
9h 17m
English
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.
Read now
Unlock full access