import java.util.List;
/**
- *
+ * The TV guide.
*/
public class TVGuide {
+ /**
+ * List of channels.
+ */
private List<Channel> _channels;
+ /**
+ * Constructs the guide.
+ * @param aChannels Channels of the guide.
+ */
public TVGuide(List<Channel> aChannels) {
_channels = aChannels;
}
+ /**
+ * Gets the channels.
+ * @return Channels.
+ */
public List<Channel> getChannels() {
return Collections.unmodifiableList(_channels);
}
+ /**
+ * Accepts the visitor.
+ * @param aVisitor Visitor.
+ */
public void accept(Visitor aVisitor) {
aVisitor.visitTvGuide(this);
}