protected class SegmentConstantPoolArrayCache.CachedArray extends Object
Constructor and Description |
---|
CachedArray(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.
|
List |
indexesForKey(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(String[] array)
public int lastKnownSize()
public List indexesForKey(String key)
key
- String element of the arrayprotected void cacheIndexes()
Copyright © 2002–2020 The Apache Software Foundation. All rights reserved.