public class StringToIntTable extends 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(String key)
Tell if the table contains the given string.
|
int |
get(String key)
Tell if the table contains the given string.
|
int |
getIgnoreCase(String key)
Tell if the table contains the given string.
|
int |
getLength()
Get the length of the list.
|
String[] |
keys()
Return array of keys in the table.
|
void |
put(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(String key, int value)
key
- String to appendvalue
- The int value of the stringpublic final int get(String key)
key
- String to look forpublic final int getIgnoreCase(String key)
key
- String to look forpublic final boolean contains(String key)
key
- String to look forpublic final String[] keys()
Copyright © 2016 JBoss by Red Hat. All rights reserved.