com.aspose.email

Interfaces

Classes

Enums

Exceptions

com.aspose.email

Class ByNumberCollection

  • All Implemented Interfaces:
    com.aspose.ms.System.Collections.Generic.IGenericCollection<Integer>, com.aspose.ms.System.Collections.Generic.IGenericEnumerable<Integer>, com.aspose.ms.System.Collections.Generic.IGenericList<Integer>, com.aspose.ms.System.Collections.IEnumerable<Integer>, Iterable<Integer>, Collection<Integer>, List<Integer>


    public class ByNumberCollection
    extends com.aspose.ms.System.Collections.Generic.List<Integer>

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


    <p>Corresponds to various BYXXX parts such as BYDAY, BYMONTH of a recurrence rule.</p> <p>Most of the ByXXX properties of {@link RecurrenceRule} are implemented as ByNumberCollection.</p>
    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.aspose.ms.System.Collections.Generic.List

        com.aspose.ms.System.Collections.Generic.List.Enumerator<T>
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      int add(int value)
      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 equals(ByNumberCollection other)
      Determines whether the specified ByNumberCollection is equal to this instance.
      boolean equals(Object obj)
      Determines whether the specified Object is equal to the current Object.
      int hashCode()
      GetHashCode returns a hash function for this object.
      • Methods inherited from class com.aspose.ms.System.Collections.Generic.List

        add, add, addAll, addAll, addItem, addRange, addRange, asReadOnly, binarySearch, binarySearch, binarySearch, clear, contains, containsAll, containsItem, convertAll, copyTo, copyTo, copyTo, copyToTArray, exists, find, findAll, findIndex, findIndex, findIndex, findLast, findLastIndex, findLastIndex, findLastIndex, forEach, fromJava, get_Item, get, getCapacity, getRange, getSyncRoot, getVersion, indexOf, indexOf, indexOf, indexOfItem, insertItem, insertRange, isEmpty, isFixedSize, isReadOnly, isSynchronized, iterator, lastIndexOf, lastIndexOf, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeAll, removeAt, removeItem, removeRange, retainAll, reverse, reverse, set_Item, set, setCapacity, size, sort, sort, sort, sort, subList, toArray, toArray, toJava, trimExcess, trueForAll
    • Method Detail

      • add

        public final int add(int value)

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

        Parameters:
        value - The value to add.


        <p>Throws an exception if the value is outside of the valid range for the time unit of this collection.</p>
        Returns:
        The zero-based index of the newly added item.
      • add

        public final void add(int[] values)

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

        Parameters:
        values - The values.
      • equals

        public boolean equals(Object obj)

        Determines whether the specified Object is equal to the current Object.

        Specified by:
        equals in interface Collection<Integer>
        Specified by:
        equals in interface List<Integer>
        Overrides:
        equals in class Object
        Parameters:
        obj - The Object to compare with the current Object.
        Returns:
        Returns a boolean indicating if the passed in object obj is Equal to this.