public class HashCache<T> extends 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 © 2004–2021 The Apache Software Foundation. All rights reserved.