public TvListing(List<Channel> channels,List<Program> programs){
  this.channels=channels;
  Iterator<Channel> xmlTvChannelIterator=channels.iterator();
  while (xmlTvChannelIterator.hasNext()) {
    Channel tvChannel=xmlTvChannelIterator.next();
    if (tvChannel.getInternalProviderData() == null) {
      Log.e(TAG,tvChannel.getName() + " has no url!");
      xmlTvChannelIterator.remove();
    }
  }
  this.programs=programs;
}

public TvListing ( List < Channel > channels , List < Program > programs ) { this . channels = channels ; Iterator < Channel > xmlTvChannelIterator = channels . iterator ( ) ; while ( xmlTvChannelIterator . hasNext ( ) ) { Channel tvChannel = xmlTvChannelIterator . next ( ) ; if ( tvChannel . getInternalProviderData ( ) == null ) { Log . e ( TAG , tvChannel . getName ( ) + " has no url!" ) ; xmlTvChannelIterator . remove ( ) ; } } this . programs = programs ; }
constructs a listing with a list of channels and programs
