protected class SegmentConstantPoolArrayCache.CachedArray extends java.lang.Object
Constructor and Description |
---|
CachedArray(java.lang.String[] array) |
Modifier and Type | Method and Description |
---|---|
protected void |
cacheIndexes()
Given a primaryArray, cache its values in a HashMap to provide a backwards mapping from element values to
element indexes.
|
java.util.List |
indexesForKey(java.lang.String key)
Given a particular key, answer a List of index locations in the array which contain that key.
|
int |
lastKnownSize()
Answer the last known size of the array cached.
|
public CachedArray(java.lang.String[] array)
public int lastKnownSize()
public java.util.List indexesForKey(java.lang.String key)
key
- String element of the arrayprotected void cacheIndexes()