|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface StringIndex
A persistent two-way mapping between strings and index integers. The index may or may not be sequential.
| Method Summary | |
|---|---|
java.lang.String |
indexToString(int idx)
Returns the string for a given index. |
int |
stringToIndex(java.lang.String string)
Returns the index for a given string. |
| Method Detail |
|---|
int stringToIndex(java.lang.String string)
throws java.lang.IllegalArgumentException
string - the indexed (or to be indexed) string
java.lang.IllegalArgumentException - if the string is not
(and can not be) indexed
java.lang.String indexToString(int idx)
throws java.lang.IllegalArgumentException
idx - index of a string
java.lang.IllegalArgumentException - if the indexed string does not exist
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||