Class DefaultContentTypesAssignmentHandler.Cache

java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractSet<E>
java.util.HashSet<String>
org.ametys.web.repository.page.DefaultContentTypesAssignmentHandler.Cache
All Implemented Interfaces:
Serializable, Cloneable, Iterable<String>, Collection<String>, Set<String>
Enclosing class:
DefaultContentTypesAssignmentHandler

The cache is a HashSet of String + a date
See Also:
  • Constructor Details

    • Cache

      public Cache(long sourceLastModified)
      Build the cache
      Parameters:
      sourceLastModified - The last modification date
  • Method Details

    • 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