|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.vodafone360.people.engine.upgrade.UpgradeUtils
public class UpgradeUtils
Utility class for upgrade related functionality.
Constructor Summary | |
---|---|
UpgradeUtils()
|
Method Summary | |
---|---|
protected static void |
cacheUpdate(Context context,
UpgradeStatus upgradeStatus)
Caches the mUpgradeStatus value if set, but clears the cache if NULL. |
protected static long |
getAgeMillis(long time)
Returns the age of a given System.currentTimeMillis() value. |
protected static UpgradeStatus |
getCachedUpdate(Context context,
long checkFrequencyMillis)
Gets an UpgradeStatus object, if one is stored in the Cache. |
static long |
getCheckFrequency(Context context)
Return the PREFS_CHECK_FREQUENCY Preference value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UpgradeUtils()
Method Detail |
---|
public static long getCheckFrequency(Context context)
context
- Context
protected static void cacheUpdate(Context context, UpgradeStatus upgradeStatus)
context
- - the context to useupgradeStatus
- - the upgrade properties - can be nullprotected static UpgradeStatus getCachedUpdate(Context context, long checkFrequencyMillis)
context
- - the context to usecheckFrequencyMillis
- - the frequency with which to check
protected static long getAgeMillis(long time)
time
- Time to check
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
JavaDoc