diff options
Diffstat (limited to 'src/Chapter5/support/DateInfo.java')
-rw-r--r-- | src/Chapter5/support/DateInfo.java | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/src/Chapter5/support/DateInfo.java b/src/Chapter5/support/DateInfo.java deleted file mode 100644 index 9a32d4c..0000000 --- a/src/Chapter5/support/DateInfo.java +++ /dev/null @@ -1,30 +0,0 @@ -/* TweetTracker. Copyright (c) Arizona Board of Regents on behalf of Arizona State University - * @author shamanth - */ -package Chapter5.support; - -import java.util.Date; -import java.util.HashMap; - -public class DateInfo implements Comparable -{ - public Date d; - public HashMap<String,Integer> catcounts = new HashMap<String,Integer>(); - - public int compareTo(Object o) { - DateInfo temp = (DateInfo) o; - if(temp.d.after(this.d)) - { - return 1; - } - else - if(temp.d.before(this.d)) - { - return -1; - } - else - { - return 0; - } - } -} |