|
||||||||||
| 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 | |
|---|---|
String |
indexToString(int idx)
Returns the string for a given index. |
int |
stringToIndex(String string)
Returns the index for a given string. |
| Method Detail |
|---|
int stringToIndex(String string)
throws IllegalArgumentException
string - the indexed (or to be indexed) string
IllegalArgumentException - if the string is not
(and can not be) indexed
String indexToString(int idx)
throws IllegalArgumentException
idx - index of a string
IllegalArgumentException - if the indexed string does not exist
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||