Package org.ametys.web.repository.page
Class DefaultServicesAssignmentHandler.Cache
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractSet<E>
-
- java.util.HashSet<String>
-
- org.ametys.web.repository.page.DefaultServicesAssignmentHandler.Cache
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Iterable<String>
,Collection<String>
,Set<String>
- Enclosing class:
- DefaultServicesAssignmentHandler
protected static class DefaultServicesAssignmentHandler.Cache extends HashSet<String>
The cache is a HashSet of String + a date- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Cache(long sourceLastModified)
Build the cache
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isValid(long newSourceLastModified)
Determine if the cache is valid-
Methods inherited from class java.util.HashSet
add, clear, clone, contains, isEmpty, iterator, remove, size, spliterator
-
Methods inherited from class java.util.AbstractSet
equals, hashCode, removeAll
-
Methods inherited from class java.util.AbstractCollection
addAll, containsAll, retainAll, toArray, toArray, 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 Detail
-
Cache
public Cache(long sourceLastModified)
Build the cache- Parameters:
sourceLastModified
- The last modification date
-
-
Method Detail
-
isValid
public boolean isValid(long newSourceLastModified)
Determine if the cache is valid- Parameters:
newSourceLastModified
- The new last modification date- Returns:
- true if the cache is still valid
-
-