Class HashCacheLoader


  • public final class HashCacheLoader
    extends java.lang.Object
    Provides access to a singleton hash function cache, if an implementation is available.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static HashCache getCache()
      Returns the single hash function cache.
      static boolean hasCache()
      Returns whether a hash function cache is available.
      • Methods inherited from class java.lang.Object

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

      • hasCache

        public static boolean hasCache()
        Returns whether a hash function cache is available.
        Returns:
        true if a cache is available, false if getCache() will throw an exception
      • getCache

        public static HashCache getCache()
        Returns the single hash function cache.
        Returns:
        the single hash cache
        Throws:
        java.lang.UnsupportedOperationException - if no hash cache is available