File tree Expand file tree Collapse file tree
src/cn/trinea/android/common Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -196,6 +196,16 @@ public boolean containsKey(String url) {
196196 return getFromCache (url ) != null ;
197197 }
198198
199+ /**
200+ * whether the element of the specified url has invalided
201+ *
202+ * @param url
203+ * @return true if the element of the specified url has invalided, false otherwise.
204+ */
205+ protected boolean isExpired (String url ) {
206+ return getFromCache (url ) == null ;
207+ }
208+
199209 /**
200210 * Removes all elements from this cache, leaving it empty.
201211 */
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ public class MapUtils {
2626 * isEmpty({1, 2}) = false;
2727 * </pre>
2828 *
29- * @param str
29+ * @param sourceMap
3030 * @return if map is null or its size is 0, return true, else return false.
3131 */
3232 public static <K , V > boolean isEmpty (Map <K , V > sourceMap ) {
You can’t perform that action at this time.
0 commit comments