* 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
*/
public boolean isRecordingPossible() {
try {
- Action record = _programInfo.execute().getAction(RECORD_ACTION);
- if (record == null) {
- return false;
- }
- return true;
+ return _programInfo.execute().getAction(RECORD_ACTION) != null;
} catch (PageException e) {
return false;
}