com.aspose.email

com.aspose.email

Class ByNumberCollection

All Implemented Interfaces:
Serializable, Cloneable, Iterable<Integer>, Collection<Integer>, List<Integer>, RandomAccess
public class ByNumberCollection
extends ArrayList<Integer>

Represents a set of months, weeks, days, hours, minutes or seconds in a recurrence rule.

Corresponds to various BYXXX parts such as BYDAY, BYMONTH of a recurrence rule. Most of the ByXXX properties of RecurrenceRule are implemented as ByNumberCollection.

See Also:
Serialized Form

Method Summary
boolean
add(intvalue)
Adds a month, week, day, hour, minute or second to the collection.
void
add(int[]values)
Adds an array of month, week, day, hour, minute or second to the collection.
boolean
contains(intvalue)
Determines whether the value is in the collection.
boolean
boolean
equals(Object obj)
get(intindex)
Gets or sets a value in the collection at the specified position.
int
void
set(intindex, intvalue)
void
sort()
Sorts the elements in the collection.
 
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(int value)

        Adds a month, week, day, hour, minute or second to the collection.

        Parameters:
        value - The value to add.

        Throws an exception if the value is outside of the valid range for the time unit of this collection.

        Returns:
        The zero-based index of the newly added item.
      • add

        public void add(int[] values)

        Adds an array of month, week, day, hour, minute or second to the collection.

        Parameters:
        values - The values.
      • contains

        public boolean contains(int value)

        Determines whether the value is in the collection.

        Parameters:
        value - The value to find.
        Returns:
        True, if the specified value was found in the collection.
      • sort

        public void sort()

        Sorts the elements in the collection.

      • set

        public void set(int index,
                        int value)