public class MemStringIndex extends java.lang.Object implements StringIndex
Constructor and Description |
---|
MemStringIndex() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getString(int id)
Returns the string value for a previously registered string.
|
int |
getStringId(java.lang.String s,
boolean add)
Returns an existing integer ID mapped to the specified string or if 'add' is
true then it will create one if it doesn't already exist.
|
public int getStringId(java.lang.String s, boolean add)
StringIndex
getStringId
in interface StringIndex
public java.lang.String getString(int id)
StringIndex
getString
in interface StringIndex