public class HashCache<T>
extends java.lang.Object
Constructor and Description |
---|
HashCache()
Creates a hash cache with 1024 slots.
|
HashCache(int exponent)
Creates a hash cache with 2^
exponent slots. |
Modifier and Type | Method and Description |
---|---|
T |
get(T object)
If a cached copy of the given object already exists, then returns
that copy.
|
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"