|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.apache.xml.utils.StringToIntTable
**For internal use only** A very simple lookup table that stores a list of strings, the even number strings being keys, and the odd number strings being values.
| Constructor Summary | |
StringToIntTable()
Default constructor. |
|
StringToIntTable(int blocksize)
Construct a StringToIntTable, using the given block size. |
|
| Method Summary | |
boolean |
contains(java.lang.String key)
Tell if the table contains the given string. |
int |
get(java.lang.String key)
Tell if the table contains the given string. |
int |
getIgnoreCase(java.lang.String key)
Tell if the table contains the given string. |
int |
getLength()
Get the length of the list. |
void |
put(java.lang.String key,
int value)
Append a string onto the vector. |
| Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public StringToIntTable()
public StringToIntTable(int blocksize)
blocksize - Size of block to allocate| Method Detail |
public final int getLength()
public final void put(java.lang.String key,
int value)
key - String to appendvalue - The int value of the stringpublic final int get(java.lang.String key)
key - String to look forpublic final int getIgnoreCase(java.lang.String key)
key - String to look forpublic final boolean contains(java.lang.String key)
key - String to look for
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||