Whether the instance contains the key
Whether the instance contains the key
The key to query
Return the number of times the key was entered into the map
Return the number of times the key was entered into the map
The key to query
Returns counts associated with the keys in the same order as keys()
Should return the first offset corresponding to the provided key, or -1 if none was found.
Should return the first offset corresponding to the provided key, or -1 if none was found.
The key to query
Increment the count for a key
Increment the count for a key
The key whose count should increment
Return the keys contained in the map in original insertion order
Put a new key into the map along with an associated integer value.
Put a new key into the map along with an associated integer value.
Key to put into map
Value to associate with key
Number of entries in the Locator map
The Locator class provides a mapping from a key to the first location of that key within a corresponding Index containing at least one of that key.
As it provides a representative for a subset of keys in the index, in the language of category theory, this mapping is a section:
Given an array x of type T, which represents a mapping
f {i} => {T}
for i in [0, x.length), Locator provides the associated section
s {T} => {i}
where s(t) = min(i) for any i such that f(i) = t.