com.ibm.as400.util.html
Class HTMLVector

java.lang.Object
  extended by java.util.AbstractCollection
      extended by java.util.AbstractList
          extended by java.util.Vector
              extended by com.ibm.as400.util.html.HTMLVector
All Implemented Interfaces:
Serializable, Cloneable, Iterable, Collection, List, RandomAccess

public class HTMLVector
extends Vector

This Vector is used internally by the HTML classes for performance reasons.

See Also:
Serialized Form

Field Summary
Modifier and Type Field and Description
 
Fields inherited from class java.util.Vector
capacityIncrement, elementCount, elementData
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
Constructor and Description
HTMLVector()
           
 
Method Summary
Modifier and Type Method and Description
 int getCount()
          This returns the superclass's element count, which is the actual number of elements that are populated in the array returned by getData().
 Object[] getData()
          This returns the superclass's element data array, which may be longer than the actual number of elements.
 
Methods inherited from class java.util.Vector
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, iterator, lastElement, lastIndexOf, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeRange, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, toString, trimToSize
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HTMLVector

public HTMLVector()
Method Detail

getData

public Object[] getData()
This returns the superclass's element data array, which may be longer than the actual number of elements. Therefore, the objects at the end of the array could be null. Care should be taken to avoid these when looping, by using the elementCount returned by getCount().


getCount

public int getCount()
This returns the superclass's element count, which is the actual number of elements that are populated in the array returned by getData(). Use this number for the maximum element count when looping through the element data, to avoid grabbing the null elements at the end of the element data array.