eu.dicodeproject.analysis.restapi
Class TwitterControllerUtil

java.lang.Object
  extended by eu.dicodeproject.analysis.restapi.TwitterControllerUtil

public class TwitterControllerUtil
extends Object

Utility class for TwitterController.


Constructor Summary
TwitterControllerUtil()
           
 
Method Summary
static void addZeros(Set<String> required, Map<String,Integer> map)
           
static SortedSet<String> getAllDates(String dateType, String start, String stop)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TwitterControllerUtil

public TwitterControllerUtil()
Method Detail

addZeros

public static void addZeros(Set<String> required,
                            Map<String,Integer> map)

getAllDates

public static SortedSet<String> getAllDates(String dateType,
                                            String start,
                                            String stop)
Parameters:
dateType - a string specifying the type of date contained in the dateMap (can be "year", "yearMonth", "yearMonthDay", "hour")
start - earliest date in the result
stop - EXCLUSIVE latest date in the result
Returns:
a sorted set with all dates in the required range of the required type


Copyright © 2011. All Rights Reserved.