This is NOT part of any supported API. If you write code that depends on this, you do so at your own risk. This code and its internal interfaces are subject to change or deletion without notice.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| public byte[] | bytes
The shared byte array holding all encountered names. |
| private static List | |
| private SharedNameTable. | hashes
The hash table for names. |
| private int | hashMask
The mask to be used for hashing |
| private int | nc
The number of filled bytes in `names'. |
| Access | Constructor and Description |
|---|---|
| public | SharedNameTable(Names
The main name table names, int the (constant) size to be used for the hash table
needs to be a power of two. hashSize, int the initial size of the name table. nameSize)Allocator |
| public |
| Modifier and Type | Method and Description |
|---|---|
| private SharedNameTable. | |
| public static synchronized SharedNameTable | |
| private static synchronized void | |
| public void | dispose()
Implements abstract com. Release any resources used by this table. |
| public Name | fromChars(char[] cs, int start, int len)
Implements abstract com. Get the unique |
| public Name | fromUtf(byte[] cs, int start, int len, Convert.
Implements abstract com. Get the unique |
| bytes | back to summary |
|---|---|
| public byte[] bytes The shared byte array holding all encountered names. | |
| freelist | back to summary |
|---|---|
| private static List<SoftReference<SharedNameTable>> freelist | |
| hashes | back to summary |
|---|---|
| private SharedNameTable. The hash table for names. | |
| hashMask | back to summary |
|---|---|
| private int hashMask The mask to be used for hashing | |
| nc | back to summary |
|---|---|
| private int nc The number of filled bytes in `names'. | |
| SharedNameTable | back to summary |
|---|---|
| public SharedNameTable(Names names, int hashSize, int nameSize) Allocator
| |
| SharedNameTable | back to summary |
|---|---|
| public SharedNameTable(Names names) | |
| addName | back to summary |
|---|---|
| private SharedNameTable. | |
| create | back to summary |
|---|---|
| public static synchronized SharedNameTable create(Names names) | |
| dispose | back to summary |
|---|---|
| private static synchronized void dispose(SharedNameTable t) | |
| dispose | back to summary |
|---|---|
| public void dispose() Implements abstract com. Doc from com. Release any resources used by this table.
| |
| fromChars | back to summary |
|---|---|
| public Name fromChars(char[] cs, int start, int len) Implements abstract com. Doc from com. Get the unique
| |
| fromUtf | back to summary |
|---|---|
| public Name fromUtf(byte[] cs, int start, int len, Convert. Implements abstract com. Doc from com. Get the unique
| |