Class Rows

  • All Implemented Interfaces:
    java.io.Serializable

    public class Rows
    extends java.lang.Object
    implements java.io.Serializable
    Class Rows.
    Version:
    $Revision$ $Date$
    See Also:
    Serialized Form
    • Constructor Detail

      • Rows

        public Rows()
    • Method Detail

      • addRow

        public void addRow​(Row vRow)
                    throws java.lang.IndexOutOfBoundsException
        Parameters:
        vRow -
        Throws:
        java.lang.IndexOutOfBoundsException - if the index given is outside the bounds of the collection
      • addRow

        public void addRow​(int index,
                           Row vRow)
                    throws java.lang.IndexOutOfBoundsException
        Parameters:
        index -
        vRow -
        Throws:
        java.lang.IndexOutOfBoundsException - if the index given is outside the bounds of the collection
      • enumerateRow

        public java.util.Enumeration<Row> enumerateRow()
        Method enumerateRow.
        Returns:
        an Enumeration over all possible elements of this collection
      • getRow

        public Row getRow​(int index)
                   throws java.lang.IndexOutOfBoundsException
        Method getRow.
        Parameters:
        index -
        Returns:
        the value of the Row at the given index
        Throws:
        java.lang.IndexOutOfBoundsException - if the index given is outside the bounds of the collection
      • getRow

        public Row[] getRow()
        Method getRow.Returns the contents of the collection in an Array.

        Note: Just in case the collection contents are changing in another thread, we pass a 0-length Array of the correct type into the API call. This way we know that the Array returned is of exactly the correct length.

        Returns:
        this collection as an Array
      • getRowCollection

        public java.util.List<Row> getRowCollection()
        Method getRowCollection.Returns a reference to 'rowList'. No type checking is performed on any modifications to the Vector.
        Returns:
        a reference to the Vector backing this class
      • getRowCount

        public int getRowCount()
        Method getRowCount.
        Returns:
        the size of this collection
      • iterateRow

        public java.util.Iterator<Row> iterateRow()
        Method iterateRow.
        Returns:
        an Iterator over all possible elements in this collection
      • removeAllRow

        public void removeAllRow()
      • removeRow

        public boolean removeRow​(Row vRow)
        Method removeRow.
        Parameters:
        vRow -
        Returns:
        true if the object was removed from the collection.
      • removeRowAt

        public Row removeRowAt​(int index)
        Method removeRowAt.
        Parameters:
        index -
        Returns:
        the element removed from the collection
      • setRow

        public void setRow​(int index,
                           Row vRow)
                    throws java.lang.IndexOutOfBoundsException
        Parameters:
        index -
        vRow -
        Throws:
        java.lang.IndexOutOfBoundsException - if the index given is outside the bounds of the collection
      • setRow

        public void setRow​(Row[] vRowArray)
        Parameters:
        vRowArray -
      • setRow

        public void setRow​(java.util.List<Row> vRowList)
        Sets the value of 'rowList' by copying the given Vector. All elements will be checked for type safety.
        Parameters:
        vRowList - the Vector to copy.
      • setRowCollection

        public void setRowCollection​(java.util.List<Row> rowList)
        Deprecated.
        Sets the value of 'rowList' by setting it to the given Vector. No type checking is performed.
        Parameters:
        rowList - the Vector to set.