Back to project page android-appwidget-cirrus.
The source code is released under:
MIT License
If you think the Android project android-appwidget-cirrus listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
/* Copyright 2014 Wayne D Grant (www.waynedgrant.com) Licensed under the MIT License */ /* www. j av a 2s . co m*/ package com.waynedgrant.cirrus.clientraw; import android.util.SparseArray; public class ClientRawCache { private static SparseArray<ClientRaw> cache = new SparseArray<ClientRaw>(); private ClientRawCache() {} public static void update(int appWidgetId, ClientRaw clientRaw) { cache.put(appWidgetId, clientRaw); } public static ClientRaw fetch(int appWidgetId) { return cache.get(appWidgetId); } public static void remove(int appWidget) { cache.remove(appWidget); } public static boolean isCached(int appWidget) { return fetch(appWidget) != null; } }