com.aspose.email

Interfaces

Classes

Enums

Exceptions

com.aspose.email

Class ByNumberCollection

  • java.lang.Object
    • com.aspose.ms.System.Collections.ObjectModel.Collection<Integer>
      • com.aspose.email.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>


    public class ByNumberCollection
    extends com.aspose.ms.System.Collections.ObjectModel.Collection<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 {@code RecurrenceRule} are implemented as ByNumberCollection.</p>

    • 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 contains(int value)
      Determines whether the value is in the collection.
      boolean equals(ByNumberCollection other)
      Determines whether the specified Aspose.iCalendar.ByNumberCollection is equal to this instance.
      boolean equals(Object obj)
      Determines whether the specified Object is equal to the current Object.
      Integer get(int index)
      Gets or sets a value in the collection at the specified position.
      int hashCode()
      GetHashCode returns a hash function for this object.
      void set(int index, int value)
      Gets or sets a value in the collection at the specified position.
      void sort()
      Sorts the elements in the collection.
      • Methods inherited from class com.aspose.ms.System.Collections.ObjectModel.Collection

        addItem, clear, containsItem, copyToTArray, get_Item, get_Items, getICollection, getIList, getSyncRoot, indexOfItem, insertItem, isReadOnly, iterator, removeAt, removeItem, set_Item, setItem, size
    • Method Detail

      • add

        public 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 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.

      • get

        public Integer get(int index)

        Gets or sets a value in the collection at the specified position.

        Parameters:
        index - a int.
        Returns:
        a Integer object.
      • set

        public void set(int index,
               int value)

        Gets or sets a value in the collection at the specified position.

        Parameters:
        index - a int.
        value - a int.
      • equals

        public boolean equals(ByNumberCollection other)

        Determines whether the specified Aspose.iCalendar.ByNumberCollection is equal to this instance.

        Parameters:
        other - The Aspose.iCalendar.ByNumberCollection to compare with this instance.
        Returns:
        true if the specified Aspose.iCalendar.ByNumberCollection is equal to this instance; otherwise, false.
      • equals

        public boolean equals(Object obj)

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

        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.
      • hashCode

        public int hashCode()

        GetHashCode returns a hash function for this object.

        Overrides:
        hashCode in class Object
        Returns:
        Returns a hash function for this object.