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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisValid(long newSourceLastModified) Determine if the cache is validMethods inherited from class java.util.HashSet
add, clear, clone, contains, isEmpty, iterator, remove, size, spliterator, toArray, toArrayMethods inherited from class java.util.AbstractSet
equals, hashCode, removeAllMethods inherited from class java.util.AbstractCollection
addAll, containsAll, retainAll, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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
-