Permalink
Browse files

package cleanup

  • Loading branch information...
1 parent 53bef83 commit ba592845111abd8052788cb294eca02110c7410d NY Senate CIO Office committed Jun 11, 2009
@@ -1,4 +1,4 @@
-package org.nysenatecio.clips;
+package gov.nysenate.newsclips;
public class Article extends Clip {
@@ -1,16 +1,25 @@
-package org.nysenatecio.clips;
+package gov.nysenate.newsclips;
import java.util.Date;
public class Clip implements Comparable<Clip> {
+
/* (non-Javadoc)
* @see java.lang.Comparable#compareTo(java.lang.Object)
*/
- @Override
+
public int compareTo(Clip o) {
- return (o.getSourceName().compareTo(getSourceName()));
+ if (o.getSourceName().compareTo(getSourceName()) == 0)
+ return 0;
+ else
+ {
+ if (o.getSourceRank() > getSourceRank())
+ return -1;
+ else
+ return 1;
+ }
}
Oops, something went wrong.

0 comments on commit ba59284

Please sign in to comment.