net.rim.pushsdk.push.stats
Class PushStatsBatchUpdaterServiceImpl.KeyComparator

java.lang.Object
  extended by 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

Constructor Summary
protected PushStatsBatchUpdaterServiceImpl.KeyComparator()
           
 
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
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

PushStatsBatchUpdaterServiceImpl.KeyComparator

protected PushStatsBatchUpdaterServiceImpl.KeyComparator()
Method Detail

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.