Enhydra 3.1 API

org.apache.xalan.xpath.xml
Class StringToStringTableVector

java.lang.Object
  |
  +--org.apache.xalan.xpath.xml.StringToStringTableVector

public class StringToStringTableVector
extends java.lang.Object

A very simple table that stores a list of StringToStringTables, optimized for small lists.


Constructor Summary
StringToStringTableVector()
          Default constructor.
StringToStringTableVector(int blocksize)
          Construct a StringToStringTableVector, using the given block size.
 
Method Summary
 void addElement(StringToStringTable value)
          Append a string onto the vector.
 boolean contains(StringToStringTable s)
          Tell if the table contains the given string.
 boolean containsKey(java.lang.String key)
          Given a string, find the last added occurance value 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
 

Constructor Detail

StringToStringTableVector

public StringToStringTableVector()
Default constructor. Note that the default block size is very small, for small lists.

StringToStringTableVector

public StringToStringTableVector(int blocksize)
Construct a StringToStringTableVector, using the given block size.
Method Detail

getLength

public final int getLength()
Get the length of the list.

size

public final int size()
Get the length of the list.

addElement

public final void addElement(StringToStringTable value)
Append a string onto the vector.

get

public final java.lang.String get(java.lang.String key)
Given a string, find the last added occurance value that matches the key.

containsKey

public final boolean containsKey(java.lang.String key)
Given a string, find the last added occurance value that matches the key.

removeLastElem

public final void removeLastElem()
Remove the last element.

elementAt

public final StringToStringTable elementAt(int i)
Get the nth element.

contains

public final boolean contains(StringToStringTable s)
Tell if the table contains the given string.

Enhydra 3.1 API