net.rim.pushsdk.push.stats
Class PushStatsBatchUpdaterServiceImpl.KeyComparator
java.lang.Object
net.rim.pushsdk.push.stats.PushStatsBatchUpdaterServiceImpl.KeyComparator
- All Implemented Interfaces:
- Comparator<String>
- Enclosing class:
- PushStatsBatchUpdaterServiceImpl
protected static class PushStatsBatchUpdaterServiceImpl.KeyComparator
- extends Object
- implements Comparator<String>
A comparator used to sort keys of the form -.
- Author:
- mdandrea
|
Method Summary |
int |
compare(String o1,
String o2)
We need to order the entries in the map by the day of the year so that the later dates get updated after the earlier
dates. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PushStatsBatchUpdaterServiceImpl.KeyComparator
protected PushStatsBatchUpdaterServiceImpl.KeyComparator()
compare
public int compare(String o1,
String o2)
- We need to order the entries in the map by the day of the year so that the later dates get updated after the earlier
dates. This is necessary to ensure that the daily push count is accurate.
- Specified by:
compare in interface Comparator<String>
Copyright © 2011 Research In Motion. All Rights Reserved.