Class FileChangeCache


  • public class FileChangeCache
    extends java.lang.Object
    Cache for files, which invalidates its elements when files are modified
    Since:
    5.2.2
    Version:
    5.2.2
    Author:
    Pedro Oliveira
    • Constructor Summary

      Constructors 
      Constructor Description
      FileChangeCache​(int theDuration, java.util.concurrent.TimeUnit theTimeUnit)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void clear()  
      <T> T get​(java.io.File theKey, java.util.function.Function<java.io.File,​T> theFunction, java.lang.Class<T> theClass)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FileChangeCache

        public FileChangeCache​(int theDuration,
                               java.util.concurrent.TimeUnit theTimeUnit)
    • Method Detail

      • get

        public <T> T get​(java.io.File theKey,
                         java.util.function.Function<java.io.File,​T> theFunction,
                         java.lang.Class<T> theClass)
                  throws java.io.IOException
        Throws:
        java.io.IOException
      • clear

        public void clear()