protected class SegmentConstantPoolArrayCache.CachedArrayextends Object
Keeps track of the last known size of an array as well as a HashMap that knows the mapping from element values to the indices of the array
which contain that value.
Given a primaryArray, cache its values in a HashMap to provide a backwards mapping from element values to element indexes. For instance, a
primaryArray of: {"Zero", "Foo", "Two", "Foo"} would yield a HashMap of: "Zero" -> 0 "Foo" -> 1, 3 "Two" -> 2 which is then cached.