Class Row
- java.lang.Object
-
- org.opennms.reporting.availability.Row
-
- All Implemented Interfaces:
Serializable
public class Row extends Object implements Serializable
Class Row.- Version:
- $Revision$ $Date$
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Row()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddValue(int index, Value vValue)voidaddValue(Value vValue)Enumeration<Value>enumerateValue()Method enumerateValue.Value[]getValue()Method getValue.Returns the contents of the collection in an Array.ValuegetValue(int index)Method getValue.List<Value>getValueCollection()Method getValueCollection.Returns a reference to 'valueList'.intgetValueCount()Method getValueCount.Iterator<Value>iterateValue()Method iterateValue.voidremoveAllValue()booleanremoveValue(Value vValue)Method removeValue.ValueremoveValueAt(int index)Method removeValueAt.voidsetValue(int index, Value vValue)voidsetValue(List<Value> vValueList)Sets the value of 'valueList' by copying the given Vector.voidsetValue(Value[] vValueArray)voidsetValueCollection(List<Value> valueList)Deprecated.
-
-
-
Method Detail
-
addValue
public void addValue(Value vValue) throws IndexOutOfBoundsException
- Parameters:
vValue-- Throws:
IndexOutOfBoundsException- if the index given is outside the bounds of the collection
-
addValue
public void addValue(int index, Value vValue) throws IndexOutOfBoundsException- Parameters:
index-vValue-- Throws:
IndexOutOfBoundsException- if the index given is outside the bounds of the collection
-
enumerateValue
public Enumeration<Value> enumerateValue()
Method enumerateValue.- Returns:
- an Enumeration over all possible elements of this collection
-
getValue
public Value getValue(int index) throws IndexOutOfBoundsException
Method getValue.- Parameters:
index-- Returns:
- the value of the Value at the given index
- Throws:
IndexOutOfBoundsException- if the index given is outside the bounds of the collection
-
getValue
public Value[] getValue()
Method getValue.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
-
getValueCollection
public List<Value> getValueCollection()
Method getValueCollection.Returns a reference to 'valueList'. No type checking is performed on any modifications to the Vector.- Returns:
- a reference to the Vector backing this class
-
getValueCount
public int getValueCount()
Method getValueCount.- Returns:
- the size of this collection
-
iterateValue
public Iterator<Value> iterateValue()
Method iterateValue.- Returns:
- an Iterator over all possible elements in this collection
-
removeAllValue
public void removeAllValue()
-
removeValue
public boolean removeValue(Value vValue)
Method removeValue.- Parameters:
vValue-- Returns:
- true if the object was removed from the collection.
-
removeValueAt
public Value removeValueAt(int index)
Method removeValueAt.- Parameters:
index-- Returns:
- the element removed from the collection
-
setValue
public void setValue(int index, Value vValue) throws IndexOutOfBoundsException- Parameters:
index-vValue-- Throws:
IndexOutOfBoundsException- if the index given is outside the bounds of the collection
-
setValue
public void setValue(Value[] vValueArray)
- Parameters:
vValueArray-
-
setValue
public void setValue(List<Value> vValueList)
Sets the value of 'valueList' by copying the given Vector. All elements will be checked for type safety.- Parameters:
vValueList- the Vector to copy.
-
-