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 table that stores a list of int. 286N/A * This version is based on a "realloc" strategy -- a simle array is 286N/A * used, and when more storage is needed, a larger array is obtained 286N/A * and all existing data is recopied into it. As a result, read/write 286N/A * access to existing nodes is O(1) fast but appending may be O(N**2) 286N/A * slow. See also SuballocatedIntVector. 286N/A /** Size of blocks to allocate */ 286N/A protected int m_map[];
// IntStack is trying to see this directly 286N/A /** Number of ints in array */ 286N/A * Default constructor. Note that the default 286N/A * block size is very small, for small lists. 286N/A * Construct a IntVector, using the given block size. 286N/A * @param blocksize Size of block to allocate 286N/A * Construct a IntVector, using the given block size. 286N/A * @param blocksize Size of block to allocate 286N/A * Copy constructor for IntVector 286N/A * @param v Existing IntVector to copy 286N/A * Get the length of the list. 286N/A * @return length of the list 286N/A * Get the length of the list. 286N/A * @return length of the list 286N/A * Append a int onto the vector. 286N/A * @param value Int to add to the list 286N/A * Append several int values onto the vector. 286N/A * @param value Int to add to the list 286N/A * Append several slots onto the vector, but do not set the values. 286N/A * @param numberOfElements Int to add to the list 286N/A * Inserts the specified node in this vector at the specified index. 286N/A * Each component in this vector with an index greater or equal to 286N/A * the specified index is shifted upward to have an index one greater 286N/A * than the value it had previously. 286N/A * @param value Int to insert 286N/A * @param at Index of where to insert 286N/A * Inserts the specified node in this vector at the specified index. 286N/A * Each component in this vector with an index greater or equal to 286N/A * the specified index is shifted upward to have an index one greater 286N/A * than the value it had previously. 286N/A * Removes the first occurrence of the argument from this vector. 286N/A * If the object is found in this vector, each component in the vector 286N/A * with an index greater or equal to the object's index is shifted 286N/A * downward to have an index one smaller than the value it had 286N/A * @param s Int to remove from array 286N/A * @return True if the int was removed, false if it was not found 286N/A * Deletes the component at the specified index. Each component in 286N/A * this vector with an index greater or equal to the specified 286N/A * index is shifted downward to have an index one smaller than 286N/A * the value it had previously. 286N/A * @param i index of where to remove and int 286N/A * Sets the component at the specified index of this vector to be the 286N/A * specified object. The previous component at that position is discarded. 286N/A * The index must be a value greater than or equal to 0 and less 286N/A * than the current size of the vector. 286N/A * @param value object to set 286N/A * @param index Index of where to set the object 286N/A * @param i index of object to get 286N/A * @return object at given index 286N/A * Tell if the table contains the given node. 286N/A * @param s object to look for 286N/A * @return true if the object is in the list 286N/A * Searches for the first occurence of the given argument, 286N/A * beginning the search at index, and testing for equality 286N/A * using the equals method. 286N/A * @param elem object to look for 286N/A * @param index Index of where to begin search 286N/A * @return the index of the first occurrence of the object 286N/A * argument in this vector at position index or later in the 286N/A * vector; returns -1 if the object is not found. 286N/A * Searches for the first occurence of the given argument, 286N/A * beginning the search at index, and testing for equality 286N/A * using the equals method. 286N/A * @param elem object to look for 286N/A * @return the index of the first occurrence of the object 286N/A * argument in this vector at position index or later in the 286N/A * vector; returns -1 if the object is not found. 286N/A * Searches for the first occurence of the given argument, 286N/A * beginning the search at index, and testing for equality 286N/A * using the equals method. 286N/A * @param elem Object to look for 286N/A * @return the index of the first occurrence of the object 286N/A * argument in this vector at position index or later in the 286N/A * vector; returns -1 if the object is not found. 286N/A * Returns clone of current IntVector 286N/A * @return clone of current IntVector