Class HashCache<T>
- java.lang.Object
-
- org.apache.jackrabbit.spi.commons.name.HashCache<T>
-
public class HashCache<T> extends Object
Simple utility class that implements a fixed-size and thread-safe (non-blocking) cache of objects. The cache is simply an array of objects, indexed by their hash codes. If more than one objects hash to the same location, only the most recently accessed object is kept in the cache.- See Also:
- JCR-1663
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
get(T object)
If a cached copy of the given object already exists, then returns that copy.
-