public List<NewsStory> getStories(NewsCategory t) { ArrayList<NewsStory> storiesByTopic = new ArrayList<NewsStory>(); for (NewsStory s : allStoriesMap.values()) { if (s.getTopic().equals(t)) { storiesByTopic.add(s); } } return storiesByTopic; }
public List<NewsStory> getStories(NewsCategory t) { ArrayList<NewsStory> storiesByTopic = new ArrayList<NewsStory>(); for (NewsStory s : allStoriesMap.values()) { if (s.getTopic().equals(t)) { storiesByTopic.add(s); } } return storiesByTopic; }