Class HashCacheLoader

java.lang.Object
com.scurrilous.circe.impl.HashCacheLoader

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

    • 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:
      UnsupportedOperationException - if no hash cache is available