Package org.ametys.web.repository.page
Class DefaultServicesAssignmentHandler.ServiceCache
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractSet<E>
java.util.HashSet<String>
org.ametys.web.repository.page.DefaultServicesAssignmentHandler.ServiceCache
- All Implemented Interfaces:
Serializable
,Cloneable
,Iterable<String>
,Collection<String>
,Set<String>
- Enclosing class:
- DefaultServicesAssignmentHandler
The cache is a HashSet of String + a date
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isValid
(long newSourceLastModified) Determine if the cache is validMethods inherited from class java.util.HashSet
add, clear, clone, contains, isEmpty, iterator, remove, size, spliterator, toArray, toArray
Methods inherited from class java.util.AbstractSet
equals, hashCode, removeAll
Methods inherited from class java.util.AbstractCollection
addAll, containsAll, retainAll, toString
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Constructor Details
-
ServiceCache
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
-