com.aspose.email
Class ByDayCollection

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.ArrayList
              extended by com.aspose.email.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(int dayOfWeek)
           Creates and adds a ByDay that represents all occurrences of the day of the week to the collection.
 boolean add(int nthOccurrence, int dayOfWeek)
           Creates and adds a ByDay to the collection.
 boolean contains(int dayOfWeek)
           Returns True if the specified day of week is present in the collection.
 boolean equals(ByDayCollection other)
           
 boolean equals(Object obj)
           
 ByDay get(int index)
           Gets or sets a ByDay from the collection.
 int hashCode()
           
 void set(int index, ByDay value)
           
 
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, indexOf, isEmpty, lastIndexOf, remove, remove, set, size, toArray, toArray, trimToSize
 
Methods inherited from class java.util.AbstractList
iterator, listIterator, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, removeAll, retainAll, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, iterator, listIterator, listIterator, removeAll, retainAll, subList
 

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.


equals

public boolean equals(ByDayCollection other)

equals

public boolean equals(Object obj)
Specified by:
equals in interface Collection
Specified by:
equals in interface List
Overrides:
equals in class AbstractList

hashCode

public int hashCode()
Specified by:
hashCode in interface Collection
Specified by:
hashCode in interface List
Overrides:
hashCode in class AbstractList


Copyright (c) 2002-2012 Aspose Pty Ltd. All Rights Reserved.