* @param aChannel Channel to visit.
*/
public void visitChannel(Channel aChannel) {
- List<Program> programs = aChannel.getPrograms();
- for (Program program: programs) {
+ for (Program program: aChannel.getPrograms() ) {
program.accept(this);
}
}
* Visits the TV guide by visiting all channels of the guide.
* @param aGuide TV guide to visit.
*/
- public void visitTvGuide(TVGuide aGuide) {
- List<Channel> channels = aGuide.getChannels();
- for (Channel channel: channels) {
+ public void visitTvGuide(TVGuide aGuide) {
+ for (Channel channel: aGuide.getChannels()) {
channel.accept(this);
}
}