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 void
addValue(int index, Value vValue)
void
addValue(Value vValue)
Enumeration<Value>
enumerateValue()
Method enumerateValue.Value[]
getValue()
Method getValue.Returns the contents of the collection in an Array.Value
getValue(int index)
Method getValue.List<Value>
getValueCollection()
Method getValueCollection.Returns a reference to 'valueList'.int
getValueCount()
Method getValueCount.Iterator<Value>
iterateValue()
Method iterateValue.void
removeAllValue()
boolean
removeValue(Value vValue)
Method removeValue.Value
removeValueAt(int index)
Method removeValueAt.void
setValue(int index, Value vValue)
void
setValue(List<Value> vValueList)
Sets the value of 'valueList' by copying the given Vector.void
setValue(Value[] vValueArray)
void
setValueCollection(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.
-
-