(no commit message)
authorerik <erik@77661180-640e-0410-b3a8-9f9b13e6d0e0>
Fri, 31 Mar 2006 09:17:45 +0000 (09:17 +0000)
committererik <erik@77661180-640e-0410-b3a8-9f9b13e6d0e0>
Fri, 31 Mar 2006 09:17:45 +0000 (09:17 +0000)
crawler/kiss/src/org/wamblee/crawler/kiss/guide/Program.java
crawler/kiss/src/org/wamblee/crawler/kiss/main/ProgramActionExecutor.java
crawler/kiss/src/org/wamblee/crawler/kiss/main/Report.java

index 9f63ac4e1f6ca3477999846d56c6ed3c86b1a65a..3d6065f5b401677c790b5a7d815cb2be1c35792a 100644 (file)
@@ -52,7 +52,7 @@ public class Program {
      * 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
index c19b6473b04b16e829f0b30a6647d5938f6beb5c..fae06bda35ea10189da41d60e9ce48f6c7691ed5 100644 (file)
@@ -71,7 +71,7 @@ public class ProgramActionExecutor {
         // 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);
index 8401477365decdf980bceb4795c2af6e49e4074f..a3d75fea0bc0b4d72177031825f4387516bb8e05 100644 (file)
@@ -67,7 +67,7 @@ public class Report {
                 RecordingResult.class);
         for (RecordingResult result : RecordingResult.values()) {
             _recordings.put(result, new TreeSet<Program>(
-                    new Program.TimeSorter()));
+                    new Program.TimeComparator()));
         }
         _messages = new ArrayList<String>();
     }
@@ -109,7 +109,7 @@ public class Report {
         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);