| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.xml.utils.StringToStringTableVector
public class StringToStringTableVector
A very simple table that stores a list of StringToStringTables, optimized for small lists.
| Field Summary | |
|---|---|
| private  int | m_blocksizeSize of blocks to allocate | 
| private  int | m_firstFreeNumber of StringToStringTable objects in this array | 
| private  StringToStringTable[] | m_mapArray of StringToStringTable objects | 
| private  int | m_mapSizeSize of this array | 
| Constructor Summary | |
|---|---|
| StringToStringTableVector()Default constructor. | |
| StringToStringTableVector(int blocksize)Construct a StringToStringTableVector, using the given block size. | |
| Method Summary | |
|---|---|
|  void | addElement(StringToStringTable value)Append a StringToStringTable object onto the vector. | 
|  boolean | contains(StringToStringTable s)Tell if the table contains the given StringToStringTable. | 
|  boolean | containsKey(java.lang.String key)Given a string, find out if there is a value in this table that matches the key. | 
|  StringToStringTable | elementAt(int i)Get the nth element. | 
|  java.lang.String | get(java.lang.String key)Given a string, find the last added occurance value that matches the key. | 
|  int | getLength()Get the length of the list. | 
|  void | removeLastElem()Remove the last element. | 
|  int | size()Get the length of the list. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
private int m_blocksize
private StringToStringTable[] m_map
private int m_firstFree
private int m_mapSize
| Constructor Detail | 
|---|
public StringToStringTableVector()
public StringToStringTableVector(int blocksize)
blocksize - Size of blocks to allocate| Method Detail | 
|---|
public final int getLength()
public final int size()
public final void addElement(StringToStringTable value)
value - StringToStringTable object to addpublic final java.lang.String get(java.lang.String key)
key - String to look up
public final boolean containsKey(java.lang.String key)
key - String to look for
public final void removeLastElem()
public final StringToStringTable elementAt(int i)
i - Index of element to find
public final boolean contains(StringToStringTable s)
s - The StringToStringTable to find
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||