com.aspose.email

com.aspose.email

Class ByDayCollection

All Implemented Interfaces:
Serializable, Cloneable, Iterable, Collection, List, RandomAccess
public class ByDayCollection
extends ArrayList

Represents a collection of ByDay objects.

Corresponds to the BYDAY part of the recurrence rule. The BYDAY rule specifies a list of days of the week for a monthly or yearly recurrence rule. For each day of the week, a specific Nth occurrence or all occurrences can be specified.

See Also:
Serialized Form

Method Summary
boolean
add(ByDay byDay)
Adds a ByDay to the collection.
boolean
add(intdayOfWeek)
Creates and adds a ByDay that represents all occurrences of the day of the week to the collection.
boolean
add(intnthOccurrence, intdayOfWeek)
Creates and adds a ByDay to the collection.
boolean
contains(intdayOfWeek)
Returns True if the specified day of week is present in the collection.
boolean
boolean
equals(Object obj)
get(intindex)
Gets or sets a ByDay from the collection.
int
void
set(intindex, ByDay value)
 
Methods inherited from class java.util.ArrayList
 
Methods inherited from class java.util.AbstractList
 
Methods inherited from class java.util.AbstractCollection
 
Methods inherited from class java.lang.Object
 
Methods inherited from interface java.util.List
 

    • Method Detail

      • add

        public boolean add(ByDay byDay)

        Adds a ByDay to the collection.

        Parameters:
        byDay - The item to add to the collection.
        Returns:
        The zero-based index of the newly added item.
      • add

        public boolean add(int dayOfWeek)

        Creates and adds a ByDay that represents all occurrences of the day of the week to the collection.

        Parameters:
        dayOfWeek - A day of the week.
        Returns:
        The zero-based index of the newly added item.
      • add

        public boolean add(int nthOccurrence,
                           int dayOfWeek)

        Creates and adds a ByDay to the collection.

        Parameters:
        nthOccurrence - The nth occurrence of the day of the week.
        dayOfWeek - A day of the week.
        Returns:
        The zero-based index of the newly added item.
      • get

        public ByDay get(int index)

        Gets or sets a ByDay from the collection.

        Specified by:
        get in interface List
        Overrides:
        get in class ArrayList
      • set

        public void set(int index,
                        ByDay value)
      • contains

        public boolean contains(int dayOfWeek)

        Returns True if the specified day of week is present in the collection.