public class StringToIntTable
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
INVALID_KEY |
Constructor and Description |
---|
StringToIntTable()
Default constructor.
|
StringToIntTable(int blocksize)
Construct a StringToIntTable, using the given block size.
|
Modifier and Type | Method and Description |
---|---|
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.
|
java.lang.String[] |
keys()
Return array of keys in the table.
|
void |
put(java.lang.String key,
int value)
Append a string onto the vector.
|
public static final int INVALID_KEY
public StringToIntTable()
public StringToIntTable(int blocksize)
blocksize
- Size of block to allocatepublic 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 forpublic final java.lang.String[] keys()
Copyright ? 2006 Apache XML Project. All Rights Reserved.