Package com.scurrilous.circe.impl
Class HashCacheLoader
- java.lang.Object
-
- com.scurrilous.circe.impl.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.
-
-
-
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
-
-