com.ibm.as400.util.html
Class HTMLVector

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

public class HTMLVector
extends Vector

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

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.Vector
capacityIncrement, elementCount, elementData
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
HTMLVector()
           
 
Method Summary
 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, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeRange, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, toString, trimToSize
 
Methods inherited from class java.util.AbstractList
iterator, listIterator, listIterator
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
iterator, listIterator, listIterator
 

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.