Class PreloadedFolder

java.lang.Object
org.craftercms.engine.cache.PreloadedFolder

public class PreloadedFolder extends Object
Represents a folder in the content store that has been preloaded in the cache.
Since:
3.1.4
Author:
avasquez
  • Constructor Details

    • PreloadedFolder

      public PreloadedFolder(String path, int depth, Set<String> descendants)
  • Method Details

    • getPath

      public String getPath()
      Returns the path of the folder.
    • exists

      public Boolean exists(String descendant)
      Returns:
      • Null if the descendant's depth is greater than the preload depth for this folder.
      • True if the descendant is in the list of preloaded descendants
      • False if the descendant is not in the list of preloaded descendants
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object