Class CachingWordListLoader


  • public class CachingWordListLoader
    extends java.lang.Object
    Helper to load text files from classpath.
    Since:
    3.3, public since 3.5
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static com.google.common.cache.LoadingCache<java.lang.String,​java.util.List<java.lang.String>> cache  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<java.lang.String> loadWords​(java.lang.String filePath)  
      • Methods inherited from class java.lang.Object

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

      • cache

        private static final com.google.common.cache.LoadingCache<java.lang.String,​java.util.List<java.lang.String>> cache
    • Constructor Detail

      • CachingWordListLoader

        public CachingWordListLoader()
    • Method Detail

      • loadWords

        public java.util.List<java.lang.String> loadWords​(java.lang.String filePath)