%REVIEW% The only difference between this an DTMStringPool seems to be that it uses a java.lang.Hashtable full of Integers rather than implementing its own hashing. Joe deliberately avoided that approach when writing DTMStringPool, since it is both much more memory-hungry and probably slower -- especially in JDK 1.1.x, where Hashtable is synchronized. We need to either justify this implementation or discard it.
Status: In progress, under discussion.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final Map | |
| public static final int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | indexToString(int i)
Overrides com. Returns: string whose value is uniquely identified by this integer index. |
| public void | |
| public int | stringToIndex(String s)
Overrides com. Returns: integer index uniquely identifying the value of this string. |
| m_stringToInt | back to summary |
|---|---|
| pack-priv final Map<String, Integer> m_stringToInt Hides com. | |
| NULL | back to summary |
|---|---|
| public static final int NULL Hides com. | |
| CustomStringPool | back to summary |
|---|---|
| public CustomStringPool() | |
| indexToString | back to summary |
|---|---|
| public String indexToString(int i) throws IndexOutOfBoundsException Overrides com.
| |
| removeAllElements | back to summary |
|---|---|
| public void removeAllElements() Overrides com. | |
| stringToIndex | back to summary |
|---|---|
| public int stringToIndex(String s) Overrides com.
| |