Class Rows
- java.lang.Object
-
- org.opennms.reporting.availability.Rows
-
- All Implemented Interfaces:
Serializable
public class Rows extends Object implements Serializable
Class Rows.- Version:
- $Revision$ $Date$
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Rows()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
addRow(int index, Row vRow)
void
addRow(Row vRow)
Enumeration<Row>
enumerateRow()
Method enumerateRow.Row[]
getRow()
Method getRow.Returns the contents of the collection in an Array.Row
getRow(int index)
Method getRow.List<Row>
getRowCollection()
Method getRowCollection.Returns a reference to 'rowList'.int
getRowCount()
Method getRowCount.Iterator<Row>
iterateRow()
Method iterateRow.void
removeAllRow()
boolean
removeRow(Row vRow)
Method removeRow.Row
removeRowAt(int index)
Method removeRowAt.void
setRow(int index, Row vRow)
void
setRow(List<Row> vRowList)
Sets the value of 'rowList' by copying the given Vector.void
setRow(Row[] vRowArray)
void
setRowCollection(List<Row> rowList)
Deprecated.
-
-
-
Method Detail
-
addRow
public void addRow(Row vRow) throws IndexOutOfBoundsException
- Parameters:
vRow
-- Throws:
IndexOutOfBoundsException
- if the index given is outside the bounds of the collection
-
addRow
public void addRow(int index, Row vRow) throws IndexOutOfBoundsException
- Parameters:
index
-vRow
-- Throws:
IndexOutOfBoundsException
- if the index given is outside the bounds of the collection
-
enumerateRow
public Enumeration<Row> enumerateRow()
Method enumerateRow.- Returns:
- an Enumeration over all possible elements of this collection
-
getRow
public Row getRow(int index) throws IndexOutOfBoundsException
Method getRow.- Parameters:
index
-- Returns:
- the value of the Row at the given index
- Throws:
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 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 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 IndexOutOfBoundsException
- Parameters:
index
-vRow
-- Throws:
IndexOutOfBoundsException
- if the index given is outside the bounds of the collection
-
setRow
public void setRow(Row[] vRowArray)
- Parameters:
vRowArray
-
-
setRow
public void setRow(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.
-
-