Package org.ametys.web.repository.page
Class DefaultServicesAssignmentHandler.ViewCache
java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<String,org.ametys.web.repository.page.DefaultServicesAssignmentHandler.ViewCacheValue>
org.ametys.web.repository.page.DefaultServicesAssignmentHandler.ViewCache
- All Implemented Interfaces:
Serializable
,Cloneable
,Map<String,
org.ametys.web.repository.page.DefaultServicesAssignmentHandler.ViewCacheValue>
- Enclosing class:
- DefaultServicesAssignmentHandler
protected static class DefaultServicesAssignmentHandler.ViewCache
extends HashMap<String,org.ametys.web.repository.page.DefaultServicesAssignmentHandler.ViewCacheValue>
The cache is a HashMap of String + a date
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,
V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isValid
(long newSourceLastModified) Determine if the cache is validMethods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
Constructor Details
-
ViewCache
Build the cache- Parameters:
sourceLastModified
- The last modification date
-
-
Method Details
-
isValid
Determine if the cache is valid- Parameters:
newSourceLastModified
- The new last modification date- Returns:
- true if the cache is still valid
-