Class DaysOfWeek

  • All Implemented Interfaces:
    java.io.Serializable

    public class DaysOfWeek
    extends java.lang.Object
    implements java.io.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
      void addDayName​(int index, java.lang.String vDayName)  
      void addDayName​(java.lang.String vDayName)  
      java.util.Enumeration<java.lang.String> enumerateDayName()
      Method enumerateDayName.
      java.lang.String[] getDayName()
      Method getDayName.Returns the contents of the collection in an Array.
      java.lang.String getDayName​(int index)
      Method getDayName.
      java.util.List<java.lang.String> getDayNameCollection()
      Method getDayNameCollection.Returns a reference to 'dayNameList'.
      int getDayNameCount()
      Method getDayNameCount.
      java.util.Iterator<java.lang.String> iterateDayName()
      Method iterateDayName.
      void removeAllDayName()  
      boolean removeDayName​(java.lang.String vDayName)
      Method removeDayName.
      java.lang.String removeDayNameAt​(int index)
      Method removeDayNameAt.
      void setDayName​(int index, java.lang.String vDayName)  
      void setDayName​(java.lang.String[] vDayNameArray)  
      void setDayName​(java.util.List<java.lang.String> vDayNameList)
      Sets the value of 'dayNameList' by copying the given Vector.
      void setDayNameCollection​(java.util.List<java.lang.String> dayNameList)
      Deprecated. 
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DaysOfWeek

        public DaysOfWeek()
    • Method Detail

      • addDayName

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

        public void addDayName​(int index,
                               java.lang.String vDayName)
                        throws java.lang.IndexOutOfBoundsException
        Parameters:
        index -
        vDayName -
        Throws:
        java.lang.IndexOutOfBoundsException - if the index given is outside the bounds of the collection
      • enumerateDayName

        public java.util.Enumeration<java.lang.String> enumerateDayName()
        Method enumerateDayName.
        Returns:
        an Enumeration over all possible elements of this collection
      • getDayName

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

        public java.lang.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 java.util.List<java.lang.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 java.util.Iterator<java.lang.String> iterateDayName()
        Method iterateDayName.
        Returns:
        an Iterator over all possible elements in this collection
      • removeAllDayName

        public void removeAllDayName()
      • removeDayName

        public boolean removeDayName​(java.lang.String vDayName)
        Method removeDayName.
        Parameters:
        vDayName -
        Returns:
        true if the object was removed from the collection.
      • removeDayNameAt

        public java.lang.String removeDayNameAt​(int index)
        Method removeDayNameAt.
        Parameters:
        index -
        Returns:
        the element removed from the collection
      • setDayName

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

        public void setDayName​(java.lang.String[] vDayNameArray)
        Parameters:
        vDayNameArray -
      • setDayName

        public void setDayName​(java.util.List<java.lang.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.
      • setDayNameCollection

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