Package icyllis.modernui.resources
Class ResStringTable
java.lang.Object
icyllis.modernui.resources.ResStringTable
Use an open-addressing and linear probing hash table to represent a set of strings,
for deduplication and mapping from string to index (not dense) and vice versa.
Although the index is not dense, the hash lookup is faster than binary search,
because string comparisons are not that fast.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ResStringTable
public ResStringTable() -
ResStringTable
public ResStringTable(int expected)
-
-
Method Details
-
wrap
-
addOrGet
-
indexOfString
-
stringAt
-