eu.dicodeproject.analysis.restapi
Class TwitterControllerUtil
java.lang.Object
eu.dicodeproject.analysis.restapi.TwitterControllerUtil
public class TwitterControllerUtil
- extends Object
Utility class for TwitterController.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TwitterControllerUtil
public TwitterControllerUtil()
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 resultstop - 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.