Class DaysOfWeek
- java.lang.Object
-
- org.opennms.reporting.availability.DaysOfWeek
-
- All Implemented Interfaces:
Serializable
public class DaysOfWeek extends Object implements Serializable
Class DaysOfWeek.- Version:
- $Revision$ $Date$
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DaysOfWeek()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddDayName(int index, String vDayName)voidaddDayName(String vDayName)Enumeration<String>enumerateDayName()Method enumerateDayName.String[]getDayName()Method getDayName.Returns the contents of the collection in an Array.StringgetDayName(int index)Method getDayName.List<String>getDayNameCollection()Method getDayNameCollection.Returns a reference to 'dayNameList'.intgetDayNameCount()Method getDayNameCount.Iterator<String>iterateDayName()Method iterateDayName.voidremoveAllDayName()booleanremoveDayName(String vDayName)Method removeDayName.StringremoveDayNameAt(int index)Method removeDayNameAt.voidsetDayName(int index, String vDayName)voidsetDayName(String[] vDayNameArray)voidsetDayName(List<String> vDayNameList)Sets the value of 'dayNameList' by copying the given Vector.voidsetDayNameCollection(List<String> dayNameList)Deprecated.
-
-
-
Method Detail
-
addDayName
public void addDayName(String vDayName) throws IndexOutOfBoundsException
- Parameters:
vDayName-- Throws:
IndexOutOfBoundsException- if the index given is outside the bounds of the collection
-
addDayName
public void addDayName(int index, String vDayName) throws IndexOutOfBoundsException- Parameters:
index-vDayName-- Throws:
IndexOutOfBoundsException- if the index given is outside the bounds of the collection
-
enumerateDayName
public Enumeration<String> enumerateDayName()
Method enumerateDayName.- Returns:
- an Enumeration over all possible elements of this collection
-
getDayName
public String getDayName(int index) throws IndexOutOfBoundsException
Method getDayName.- Parameters:
index-- Returns:
- the value of the String at the given index
- Throws:
IndexOutOfBoundsException- if the index given is outside the bounds of the collection
-
getDayName
public String[] getDayName()
Method getDayName.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
-
getDayNameCollection
public List<String> getDayNameCollection()
Method getDayNameCollection.Returns a reference to 'dayNameList'. No type checking is performed on any modifications to the Vector.- Returns:
- a reference to the Vector backing this class
-
getDayNameCount
public int getDayNameCount()
Method getDayNameCount.- Returns:
- the size of this collection
-
iterateDayName
public Iterator<String> iterateDayName()
Method iterateDayName.- Returns:
- an Iterator over all possible elements in this collection
-
removeAllDayName
public void removeAllDayName()
-
removeDayName
public boolean removeDayName(String vDayName)
Method removeDayName.- Parameters:
vDayName-- Returns:
- true if the object was removed from the collection.
-
removeDayNameAt
public String removeDayNameAt(int index)
Method removeDayNameAt.- Parameters:
index-- Returns:
- the element removed from the collection
-
setDayName
public void setDayName(int index, String vDayName) throws IndexOutOfBoundsException- Parameters:
index-vDayName-- Throws:
IndexOutOfBoundsException- if the index given is outside the bounds of the collection
-
setDayName
public void setDayName(String[] vDayNameArray)
- Parameters:
vDayNameArray-
-
setDayName
public void setDayName(List<String> vDayNameList)
Sets the value of 'dayNameList' by copying the given Vector. All elements will be checked for type safety.- Parameters:
vDayNameList- the Vector to copy.
-
-