Modifier and Type | Class and Description |
---|---|
class |
NewspaperStory
Project 3, CS 2334, Section 010 March 8, 2017
|
class |
OnlineNewsStory
Project 3, CS 2334, Section 010, March 8, 2017
|
class |
TVNewsStory
Project 3, CS 2334, Section 010, March 8, 2017
|
Modifier and Type | Field and Description |
---|---|
private java.util.List<NewsStory> |
NewsStoryList.newsStories
The list of newspaper stories.
|
Modifier and Type | Method and Description |
---|---|
NewsStory |
NewsStoryList.get(int index)
An accessor for getting a story from the list based on its position
(index) in the list.
|
Modifier and Type | Method and Description |
---|---|
void |
NewsStoryList.add(NewsStory newsStory)
The mutator for adding a newspaper story to the list.
|
void |
NewsMaker.addNewsStory(NewsStory newsStory)
The mutator that adds a news story to a news maker's list of
stories.
|
int |
LengthComparator.compare(NewsStory newsStory1,
NewsStory newsStory2)
The required
compare method for implementing
Comparator . |
int |
SourceComparator.compare(NewsStory newsStory1,
NewsStory newsStory2)
The required
compare method for implementing
Comparator . |
int |
DateComparator.compare(NewsStory newsStory1,
NewsStory newsStory2)
The required
compare method for implementing
Comparator . |
int |
NewsStory.compareTo(NewsStory newsStory)
Overridden
compareTo method to allow for sorting. |
private static java.lang.String |
UserInterface.convertToOutputFormat(NewsStory newsStory,
java.lang.String mediaType)
This method converts an individual story to the desired display format.
|