com.ibm.as400.util.html

Class HTMLVector

  • java.lang.Object
    • java.util.AbstractCollection<E>
      • java.util.AbstractList<E>
        • java.util.Vector
          • com.ibm.as400.util.html.HTMLVector
  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, java.lang.Iterable, java.util.Collection, java.util.List, java.util.RandomAccess


    public class HTMLVector
    extends java.util.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

      Constructors 
      Constructor and Description
      HTMLVector() 
    • Method Summary

      Methods 
      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().
      java.lang.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 java.lang.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().
        Returns:
        data array
      • 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.
        Returns:
        count