286N/A * reserved comment block 286N/A * DO NOT REMOVE OR ALTER! 286N/A * Copyright 1999-2004 The Apache Software Foundation. 286N/A * Licensed under the Apache License, Version 2.0 (the "License"); 286N/A * you may not use this file except in compliance with the License. 286N/A * You may obtain a copy of the License at 286N/A * Unless required by applicable law or agreed to in writing, software 286N/A * distributed under the License is distributed on an "AS IS" BASIS, 286N/A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 286N/A * See the License for the specific language governing permissions and 286N/A * limitations under the License. 286N/A * A very simple lookup table that stores a list of strings, the even 286N/A * number strings being keys, and the odd number strings being values. 286N/A /** Size of blocks to allocate */ 286N/A /** Array of strings this contains */ 286N/A /** Number of strings this contains */ 286N/A /** Size of this table */ 286N/A * Default constructor. Note that the default 286N/A * block size is very small, for small lists. 286N/A * Construct a StringToStringTable, using the given block size. 286N/A * @param blocksize Size of blocks to allocate 286N/A * Get the length of the list. 286N/A * @return Number of strings in the list 286N/A * Append a string onto the vector. 286N/A * The strings go to the even locations in the array 286N/A * and the values in the odd. 286N/A * @param key String to add to the list 286N/A * @param value Value of the string 286N/A * Tell if the table contains the given string. 286N/A * @param key String to look up 286N/A * @return return the value of the string or null if not found. 286N/A * Remove the given string and its value from this table. 286N/A * @param key String to remove from the table 286N/A * Tell if the table contains the given string. Ignore case 286N/A * @param key String to look up 286N/A * @return The value of the string or null if not found 286N/A * Tell if the table contains the given string in the value. 286N/A * @param val Value of the string to look up 286N/A * @return the string associated with the given value or null if not found 286N/A * @param i index of the string to look up. 286N/A * @return The string at the given index. 286N/A * Tell if the table contains the given string. 286N/A * @param key String to look up 286N/A * @return True if the given string is in this table 286N/A * Tell if the table contains the given string. 286N/A * @param val value to look up 286N/A * @return True if the given value is in the table.