* Lexicographical comparison of programs based on (time, title, channel).
*
*/
- public static class TimeSorter implements Comparator<Program> {
+ public static class TimeComparator implements Comparator<Program> {
/**
* Lexicographical comparison based on start time, program name, and
// over the priorities will go from higher priority to lower priority.
Set<Program> programs = _showsToRecord.get(-aPriority);
if (programs == null) {
- programs = new TreeSet<Program>(new Program.TimeSorter());
+ programs = new TreeSet<Program>(new Program.TimeComparator());
_showsToRecord.put(-aPriority, programs);
}
programs.add(aProgram);
RecordingResult.class);
for (RecordingResult result : RecordingResult.values()) {
_recordings.put(result, new TreeSet<Program>(
- new Program.TimeSorter()));
+ new Program.TimeComparator()));
}
_messages = new ArrayList<String>();
}
LOG.info("category = '" + aCategory + "', program: " + aProgram);
Set<Program> programs = _interestingShows.get(aCategory);
if (programs == null) {
- programs = new TreeSet<Program>(new Program.TimeSorter());
+ programs = new TreeSet<Program>(new Program.TimeComparator());
_interestingShows.put(aCategory, programs);
}
programs.add(aProgram);